Originally posted by: Anubis
why do you want to do that> i absoutly hate when people use underscores in file names
Originally posted by: Anubis
why do you want to do that> i absoutly hate when people use underscores in file names
Originally posted by: skace
Right now it only echoes. Put it in a batch file and test it out, if you like the output, delete the echo before the "ren" and run it again. Also, I should add that you run it from inside the directory with all the files. That could be changed by modifying the dir line, but I wanted to leave it generic. I use something similar at home, I throw the batch file in the directory, double click and go.
...where did the insert code button go......
#CODE HERE#
@echo off
for /f "tokens=*" %%i in ('dir /b /a-d') do call :start "%%i" "%%~fi"
goto :eof
:start
set "temp0rs=%~1"
set "temp0rs=%temp0rs: =_%"
echo ren "%~2" "%temp0rs%"
goto :eof
#END CODE#
Originally posted by: skace
Right now it only echoes. Put it in a batch file and test it out, if you like the output, delete the echo before the "ren" and run it again. Also, I should add that you run it from inside the directory with all the files. That could be changed by modifying the dir line, but I wanted to leave it generic. I use something similar at home, I throw the batch file in the directory, double click and go.
...where did the insert code button go......
#CODE HERE#
@echo off
for /f "tokens=*" %%i in ('dir /b /a-d') do call :start "%%i" "%%~fi"
goto :eof
:start
set "temp0rs=%~1"
set "temp0rs=%temp0rs: =_%"
echo ren "%~2" "%temp0rs%"
goto :eof
#END CODE#
Originally posted by: Anubis
why do you want to do that> i absoutly hate when people use underscores in file names
Originally posted by: Anubis
why do you want to do that> i absoutly hate when people use underscores in file names
Originally posted by: GeekDrew
Originally posted by: Anubis
why do you want to do that> i absoutly hate when people use underscores in file names
Congratulations. I absolutely hate when people use spaces, rather than underscores.![]()
Originally posted by: Reel
Originally posted by: GeekDrew
Originally posted by: Anubis
why do you want to do that> i absoutly hate when people use underscores in file names
Congratulations. I absolutely hate when people use spaces, rather than underscores.![]()
It is such a pain in the ass to escape out the spaces with the backslash. I much prefer to see underscores. It also opens up a can of worms occasionally when it is a space. Spaces are annoying in file names.
