Search found 3 matches
- 18 Apr 2008 11:44
- Forum: DOS Batch Forum
- Topic: How do I display a list of files with last-modified dates?
- Replies: 3
- Views: 9305
List of files with dates & date/time stamp output file n
To add further to my last reply, I added the functionality of date/time-stamping the output file name, eliminating the need to delete the output file each time: @echo off :: May or may not need to pad month and hour, so better to be safe. :: You may need to change the positioning for the PADMTH or P...
- 17 Apr 2008 17:39
- Forum: DOS Batch Forum
- Topic: How do I display a list of files with last-modified dates?
- Replies: 3
- Views: 9305
Answered my own question!
To do this I had to create a .bat file with the following command: for /r "%userprofile%\Desktop\" %%F in (*.xl*) do (echo.%%~ftF >> "%userprofile%\Desktop\excel_results.txt") If I simply write to the output file each time (rather than append, as I do above with >>) it overwrites...
- 16 Apr 2008 10:25
- Forum: DOS Batch Forum
- Topic: How do I display a list of files with last-modified dates?
- Replies: 3
- Views: 9305
How do I display a list of files with last-modified dates?
I need to output the files of a directory/sub-directory along with the last-modified date (either before or after with a delimiter separating the two) to a text file. The closest I could get is: dir *.* /s/b/a/t:w > filelist.txt The problem is, I cannot see the last-modified date when using the &quo...