Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>This batch file can help, but it has some limitations. The filename characters = and % cannot be replaced (going from memory here) and an ^ in the filenames might be a problem too.</p> <p>In this portion <code>%newname: =_%</code> on every line in the lower block it replaces the character after <code>:</code> with the character after <code>=</code> so as it stands the bunch of characters are going to be replaced with an underscore.</p> <p>Remove the <code>echo</code> to activate the ren command as it will merely print the commands to the console window until you do.</p> <p>It will only process the current folder, unless you add <code>/s</code> to the DIR command portion and then it will process all folders under the current one too.</p> <p>To delete a certain character, remove the character from after the = sign. In <code>%newname:z=%</code> an entry like this would remove all z characters (case insensitive).</p> <pre><code>@echo off for /f "delims=" %%a in ('dir /a:-d /o:n /b') do call :next "%%a" pause GOTO:EOF :next set "newname=%~nx1" set "newname=%newname: =_%" set "newname=%newname:)=_%" set "newname=%newname:(=_%" set "newname=%newname:&amp;=_%" set "newname=%newname:^=_%" set "newname=%newname:$=_%" set "newname=%newname:#=_%" set "newname=%newname:@=_%" set "newname=%newname:!=_%" set "newname=%newname:-=_%" set "newname=%newname:+=_%" set "newname=%newname:}=_%" set "newname=%newname:{=_%" set "newname=%newname:]=_%" set "newname=%newname:[=_%" set "newname=%newname:;=_%" set "newname=%newname:'=_%" set "newname=%newname:`=_%" set "newname=%newname:,=_%" echo ren %1 "%newname% </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload