- @3xecho off
- setlocal enabledelayedexpansion
- rem Loop through all files in the current directory
- for %%f in (*@3x*) do (
- rem Get the new filename by removing the '@3x'
- set "newName=%%f"
- set "newName=!newName:@3x=!"
-
- rem Rename the file
- ren "%%f" "!newName!"
- )
- echo Files renamed successfully.
- pause
|