Subj : FileAge - Touch To : Gerald Miller From : Jasen Betts Date : Fri Jun 28 2002 08:03 am Hi Gerald. 23-Jun-02 18:17:12, Gerald Miller wrote to Jasen Betts GM> Hello Jasen, GM> In an effort to get some traffic flow here... GM> I routinely write text files and would like to touch the date/time GM> of these files to be equal to the date/time of an existing file. GM> Would you please explain how I may take the %@fileage[filename,w] GM> and use it for %@fileage[filetext,w]??? the easiest way is to convert to human readable form (filedate etc) and then feed that to touch. I played with it a bit it seems to work: I'm pretty sure this needs version 7 of 4dos set f1=filetext set f0=filename touch /tw %@filetime[ %f0% ,w,s] /dw %@filedate[ %f0% ,w , 4 ] %f1 as an undocumented feature touch does honour seconds in the /t oprion. There seems to be a bug in %@filedate with dates after about 2079 somewhere. 4DOS 7.00A this could be worked around (the dates come out exacltly 1900 years early) or it may be fixed in later revisions of 4dos -=> Bye <=- --- * Origin: Those who can't write, write manuals. (3:640/531.42) .