batch file for .png?
quick question. Have a batch file that will generate a .txt file when a .png is place into the dire开发者_JAVA技巧ctory. 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
Try this:
@echo off
echo. > name.txt
for %%i in (*.png) do echo %%i "%%~ti" >> name.txt
精彩评论