- Thread Author
- #1
To get the exact time stamp attribute of a file in the command prompt, I use:
Using WMIC is necessary because the dir command can only show minutes. However, wmic datafile only works on files, not folders. I paid attention to using both the quotation marks and the two backslashes rather than one after the drive letter and the colon.
Is there any way to achieve this on folders?
Code:
wmic datafile where name="D:\\test1.txt" get LastModified
Using WMIC is necessary because the dir command can only show minutes. However, wmic datafile only works on files, not folders. I paid attention to using both the quotation marks and the two backslashes rather than one after the drive letter and the colon.
Is there any way to achieve this on folders?