开发者

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜