I have multiple files and would like to rename its file.
For example, I have
"2014_19_24_english_test.doc"
and to change it to
"2014 19 24 english test.doc"
Here is what I have done so far:
for /f "delims=" %%f in ('dir /b *.hwp') do ren "%%~f" "%%~nf:_= %%~xf"
and this is not working. Any help would be appreciated,
Chris
You cannot use the substring replacement syntax with
for
variables, so you need an interim variable to do that, using delayed expansion:I found it out and this is what I did :
Hope this helps.