tags:

views:

38

answers:

1

Hi, 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
+2  A: 

Try this:

@echo off
echo. > name.txt
for %%i in (*.png) do echo %%i "%%~ti" >> name.txt
Andrew Cooper
Thanks you so much!! it works
Steve