Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

Add meta character to represent current file for touch to use with /r

Sep
84
2
Now that you've added the ability for touch to use the date and time from a file with /r how about some type of meta character to allow it to use the current file for /r
touch /d:c /t:c /r:wf /s files.
where the f indicates to use the current file. Then this can be contained and not need a loop to really use the new syntax.
 
I may be missing something obvious, but without a loop (and a loop variable) what is the "current" file?
 
That seems to mean you want the reference file to be the same file as the file you're TOUCHing. I guess that would be useful if you want to make one (or two) of the file's three times equal to another of the (same) file's times. It seems a bit odd.
 
That seems to mean you want the reference file to be the same file as the file you're TOUCHing. I guess that would be useful if you want to make one (or two) of the file's three times equal to another of the (same) file's times. It seems a bit odd.
That is exactly what I'm doing copying the last modified time of the file to the creation time.
 
Back
Top
[FOX] Ultimate Translator
Translate