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