
| Quote: | |
|
CODE: [Copy to clipboard]@echo off
set SrcDir=C:\test\aa
for %%a in ("%SrcDir%\*.*") do (
set "str=%%~nxa"
setlocal enabledelayedexpansion
for %%a in (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) do (
set str=!str:%%a=%%a!
)
ren "%%a" "!str!"
)
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |