If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
I'm looking for a script to change the date/time properties of (a list of)directories with the date of the oldest (or newest) file in these directories.
Can anyone help?
The easiest way to do this would be to incorporate it into a batch script, using for, dir (ordered), date and time (to set date/time before calling touch), and finally touch the directory with the first result from the ordered dir output.