home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Club Amiga de Montreal - CAM
/
CAM_CD_1.iso
/
files
/
164.lha
/
ARexx
/
Example_ARexx
/
touch.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1988-04-28
|
361b
|
16 lines
/* touch -- set the date or time of a file. Calls setdate. If the file does
not exist, creates it as an empty file */
parse arg x
if index(x,'*') >0 | index(x,'#?') >0 | index(x,'?') >0 | index(x,'|') >0 then
do
setdate x
end
else
if exists(word(x,1)) then setdate x
else
do
scratch = open(dummy,x,'w')
scratch = close(dummy)
setdate x
end