标签:空格 批处理文件 bat 文件名 运行 代码 set ble oca
把以下代码保存成.bat批处理文件,放到需要批量重命名的文件内,运行即可。
@echo off&setlocal enabledelayedexpansion
for /f "delims=" %%i in (‘dir /s/b .‘) do (
set "foo=%%~nxi"
set foo=!foo: =!
set foo=!foo: =!
ren "%%~fi" "!foo!"
)
exit
标签:空格 批处理文件 bat 文件名 运行 代码 set ble oca
原文地址:https://www.cnblogs.com/Rainbow-sea/p/12994113.html