Created
October 27, 2024 01:01
-
-
Save joe-oli/1bdde5e7d4736ff49842eda4f350b969 to your computer and use it in GitHub Desktop.
Batch file to rename folders This.Is.My.Folder.(2024) Will be renamed "This Is My Folder (2024)" i.e. remove the dots
This file contains hidden or 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 | |
setlocal enabledelayedexpansion | |
for /d %%F in (*.*) do ( | |
set "folder=%%F" | |
set "newfolder=!folder:.= !" | |
ren "%%F" "!newfolder!" | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment