开发者

batch file for .png?

开发者 https://www.devze.com 2023-01-16 00:17 出处:网络
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 w

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

精彩评论

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

关注公众号