In Windows 7, how can I recursively touch all files in a directory (including subdirectories) in order to update the date/time stamp?
Does Windows 7 have a mechanism to accomplish this?
feedback
|
|
Since they are readily available, I would recommend taking advantage of the unxutils. They include the After changing to the topmost directory you wish to modify: find . -type f -exec touch {} +
| |||
|
feedback
|
|
There are several possibilities:
| |||||||
feedback
|
|
Or you could use the tools already built into Windows, once you already have a "touch" tool of some kind:
OR
(N.B.: If you're doing this from a batch file and want to use the | |||
|
feedback
|
|
I know this is probably a bit too late but nevertheless, I'll leave my answer just in case someone else needs the same thing. John T's answer didn't work for me on Windows 7. After some research I found this utility called SKTimeStamp, which does the job perfectly. Here's an article with more details on how it works: http://www.trickyways.com/2009/08/how-to-change-timestamp-of-a-file-in-windows-file-created-modified-and-accessed/. Here are the steps you need to perform:
Voila! All your files have been updated! No need for any unix utils or command lines. | |||
|
feedback
|
|
It failed on Windows 7 for me too. I used different syntax and got it to work:
Note, I didn't use the recurse option. | ||||
|
feedback
|
|
To use only existing Windows functionality (nothing extra to install) try one of these:
(recursively "touch" all files starting in the specified path) OR
(recursively "touch" all files starting in current directory) | |||
|
feedback
|