
CODE: [Copy to clipboard]@echo off&Setlocal EnableDelayedExpansion
set a=1
for %%a in (C:\*.jpg) do (
set jpgfile!a!="%%a"
echo !a! %%a
set/a a+=1
)
set/p choose=Please select a file:
ren !jpgfile%choose%! 123.jpg
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |