windows批处理,批量替换文件、文件夹名中的空格
发表于:2022-01-17 17:00:23浏览:1586次
空格都替换成“-”横杠
@echo off setlocal enabledelayedexpansion for /f "delims=" %%a in ('dir/s/b *.*') do ( set a=%%~nxa set a=!a: =-! ren "%%a" !a! ) pause
栏目分类全部>
空格都替换成“-”横杠
@echo off setlocal enabledelayedexpansion for /f "delims=" %%a in ('dir/s/b *.*') do ( set a=%%~nxa set a=!a: =-! ren "%%a" !a! ) pause