本帖最后由 pcl_test 于 2015-4-30 15:31 编辑
- @echo off & setlocal enabledelayedexpansion
- for /f "delims=" %%a in ('dir /s /b *.mp3 ^|find " "') do (
- >"%temp%\$tmp.vbs" echo,wscript.echo trim("%%~na"^)
- for /f "delims=" %%i in ('cscript /nologo "%temp%\$tmp.vbs"') do set "name=%%i"
- ren "%%a" "!name!%%~xa"
- )
- pause
复制代码
|