Is it possible to view the last time a file was modified in Windows command prompt in milliseconds or even in seconds?
Windows file properties You can also see the modified date by viewing the file properties. Right-click the file and select Properties. In the Properties window, the Created date, Modified date, and Accessed date is displayed, similar to the example below.
3. Type "time" into the command prompt window and press "Enter." The current time setting will now display. To change it, type the proper time into the window in the "00:00:00" 24-hour format -- for example, "13:30:00" for 1:30 p.m. -- and press "Enter." The new time will now be saved.
TIME /T Key new_time : The time as HH:MM TIME with no parameters will display the current time and prompt for a new value. Pressing ENTER will keep the same time. /T : Just display the time, formatted according to the current Regional settings.
One of the most powerful tools in the CMD command library is the ASSOC command. Your computer associates certain file extensions with certain programs. This is how your computer knows to open Adobe when you double click a PDF file, or Microsoft Word when you double click a DOC file.
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"
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With