5

Is it possible to view the last time a file was modified in Windows command prompt in milliseconds or even in seconds?

| |
7

There is no native Windows command line utility that supports viewing time stamps with a resolution of milliseconds.

Your best option would to either use a 3rd party tool or for a native solution (Vista+), use robocopy (supports seconds):

robocopy /L /TS . ..

Tracking a resolution finer than seconds might be trivial or useless as well depending on the file system being used. See http://msdn.microsoft.com/en-us/library/windows/desktop/ms724290(v=vs.85).aspx and http://jpsoft.com/help/index.htm?timestamps.htm

FAT has a write time resolution of 2 seconds.

| |
6

The robocopy answer does work, but another nice option that works from the standard Windows console (not DOS per se):

forfiles /c "cmd /c echo @file @ftime"

| |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.