Answers for "convert dash to underscore windows"

1

convert dash to underscore windows

Setlocal enabledelayedexpansion

Set "Pattern=-"
Set "Replace=_"

For %%a in (*) Do (
Set "File=%%~a"
Ren "%%a" "!File:%Pattern%=%Replace%!"
)
Posted by: Guest on June-19-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language