Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

convert dash to underscore windows

Setlocal enabledelayedexpansion

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

For %%a in (*) Do (
Set "File=%%~a"
Ren "%%a" "!File:%Pattern%=%Replace%!"
)
 
PREVIOUS NEXT
Tagged: #convert #dash #underscore #windows
ADD COMMENT
Topic
Name
5+6 =