mas@ecsvax.UUCP (08/23/84)
***********
Does anyone know of an easy way to "touch" a file in MSDOS?
i.e to modify the time stamp to the current time.
There must be some clever dos call that will do such a thing.
Thanks in advance,
mark shifman ...{decvax,akgua}!mcnc!ecsvax!masfan@UCI-750A.ARPA (08/27/84)
From: Roy Fan <fan@UCI-750A.ARPA>
The command mentioned in previous message works with DOS 1.1,
I don't know about whether it will work under DOS 2.x.broehl@wateng.UUCP (Bernie Roehl) (08/27/84)
Easy -- just use INT 21H, function code 57 (get/set a file's date and
time). It's documented on page D-51 of the DOS 2.00 manual.
--
-Bernie Roehl (University of Waterloo)
...decvax!watmath!wateng!broehlfan@UCI-750A.ARPA (09/01/84)
From: Roy Fan <fan@UCI-750A.ARPA>
If you just want to update the time stamp of the file to current time,
the simplest way to do is to copy the file onto itself by
A>COPY/B File_Name+ ; if the file is binary or
A>COPY File_Name+ ; if the file is text
where File_Name is any valid file name on your disk
Roy Fan