home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 11 Util
/
11-Util.zip
/
mtwos250.zip
/
DOK
/
ENV.CMD
next >
Wrap
OS/2 REXX Batch file
|
1996-02-09
|
663b
|
38 lines
;
; When the environment variable SWAPDRIVE has the value C:
; then the condition is true
;
if env SWAPDRIVE == C:
+[386enh]swapfile=C:
else
+[386enh]swapfile=D:
endif
;
; Same a above, but since the compared value contains blanks,
; you must put the String into " .... "
;
;
;
;
;
if env SWAPTEXT == "Swapfile on drive C:"
+[386enh]swapfile=C:
else
+[386enh]swapfile=D:
endif
;
; When you want to replace a string anywhere in the INI file, then
; use the r command with a empty section [].
;
r[]OldString=NewString
;
; When you would replace a = sign, then enclose the OldString in ".."
;
r[]"Old=String"=New=String2