Last active
August 29, 2015 14:25
-
-
Save k4gdw/0748b3b5002d5fb1d101 to your computer and use it in GitHub Desktop.
A batch file (.cmd) to rename files to change underscores in the file name to spaces.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
REM I found this code here: http://k4gdw.us/1CSwWRX (StackOverflow) | |
setlocal enabledelayedexpansion | |
for %%a in (*_*) do ( | |
set file=%%a | |
ren "!file!" "!file:_= !" | |
) |
I added a remark in the file to point to the original StackOverflow article.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I found this code on StackOverflow and thought it should be in a gist.