修改.bat 323 B

123456789101112131415
  1. @3xecho off
  2. setlocal enabledelayedexpansion
  3. rem Loop through all files in the current directory
  4. for %%f in (*@3x*) do (
  5. rem Get the new filename by removing the '@3x'
  6. set "newName=%%f"
  7. set "newName=!newName:@3x=!"
  8. rem Rename the file
  9. ren "%%f" "!newName!"
  10. )
  11. echo Files renamed successfully.
  12. pause