Thanks, can you go further to give me year, month, day and 24hour, minute, and seconds as YYYY,MM,DD and then HH,MM,SS.
II need to use it to rename a file like YYYYMMDD-HHMMSS.txt., etc.
Search found 2 matches
- Tue Dec 31, 2013 3:56 pm
- Forum: CLI Discussions
- Topic: BATCH PROGRAM to GET DATE and TIME from FILE
- Replies: 3
- Views: 15884
- Mon Dec 30, 2013 8:40 pm
- Forum: CLI Discussions
- Topic: BATCH PROGRAM to GET DATE and TIME from FILE
- Replies: 3
- Views: 15884
BATCH PROGRAM to GET DATE and TIME from FILE
Anybody know how to get the file date using a Windows Batch file? Such as YYYYMMDD and maybe time of file as HHMMSS? Not the system file and date, the File Time and date.