[Solved] How to replace spaces with dashes of folder names (in bulk) [closed]
[ad_1] This works here. @ECHO OFF SETLOCAL ENABLEDELAYEDEXPANSION FOR /D /R %%i IN (*) DO ( SET “n=%%~nxi” REN “%%i” “!n: =-!” ) [ad_2] solved How to replace spaces with dashes of folder names (in bulk) [closed]