Super Smash Bros. for Wii U Icon SSBU Script

Batch file to rename "XX" filenames

Hey, you! We are one of the oldest mod sites on the Interwebs. Sign up and maximize your browsing experience.

  • Subscribe: Get notified of new submissions like this.
  • Say Thanks: Show your appreciation by sending uscdrew points.
  • Post: Give uscdrew your thoughts on this Script.
  • Vote: Help uscdrew win the Monthly Awards.
  • Rate: Give this Script a rating out of 10.
  • Flag: Alert moderators and warn members of a problem with this Script.
  • Watch: Get notified when this Script is updated.
Mascot

Resistance is futile...

Join GameBanana

Already a Bananite? Login

8 lines | 252 bytes | Raw Code
1
2
3
4
5
6
7
8
@echo off
setlocal enableDelayedExpansion
set /p "string1=Enter the characters to be changed: "
set /p "string2=Enter the new characters: "
for %%F in (*%string1%.*) do (
  set "filename=%%F"
  ren "!filename!" "!filename:%string1%=%string2%!"
)
This is a .bat file I quickly wrote since I got tired of manually renaming files to fit in my modpack.  Note that this doesn't work with folder names, but can be edited to do so.

To use:
1) Open notepad
2) Copy/paste script into notepad
3) When saving, add ".bat" to the filename and make sure you are saving as all files instead of text document
4) Save file in the directory that contains the file you want to rename
5) Run the file and follow the instructions

Posts

Share

Shareable Image:
Share banner
HTML embed code:
BB embed code:
Markdown embed code:

More embeddable images

Bookmark and Share

Credits

Author
uscdrew
uscdrew Offline
Member Joined 5mo
216 points Ranked 16221st

Submitter

uscdrew avatar
uscdrew Offline
Member Joined 5mo
216 points Ranked 16221st

uscdrew
Creator
Send a Private Message to the submitter

Category

Stats

Posts
3
Views
477
Date Added
1mo

Rating

  • Not yet rated