home *** CD-ROM | disk | FTP | other *** search
- /* 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
-