Reputation: 1
quick question. Have a batch file that will generate a .txt file when a .png is place into the directory. Will it be possible to include the date the .png was created next to the line with a "".
For example:
.png "9/14/2010"
.png "9/14/2010"
.png "9/14/2010"
right now I have this as my batch file:
dir /B *.png > name.txt
which shows this
.png
.png
.png
Upvotes: 0
Views: 682
Reputation: 32586
Try this:
@echo off
echo. > name.txt
for %%i in (*.png) do echo %%i "%%~ti" >> name.txt
Upvotes: 2