Guest User

Untitled

a guest
Jun 29th, 2014
271
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.79 KB | None | 0 0
  1. @ECHO OFF
  2. :RETRY
  3. cls
  4. echo BASE.PNG VERSION.
  5. echo base.png in the .bat folder will be copied.
  6. @echo:
  7. echo Enter full path to folder containing files to be replaced.
  8. echo e.g. C:\MyTheme.theme\Bundles\com.avi.aviapp:
  9. set /P "pathy="
  10. cls
  11. echo All .png images in this folder will be replaced with base.png:
  12. echo %pathy%
  13. @echo:
  14. choice /c ync /n /m "Proceed? (Y)es, (N)o or (C)ancel?"
  15. IF ERRORLEVEL 3 GOTO STOPPED
  16. IF ERRORLEVEL 2 GOTO RETRY
  17. for %%a in ("%pathy%\*.png") do COPY /Y "base.png" "%%a"
  18. echo Done! If you see errors, make sure the target folder is correct, and that base.png is in the same folder as your .bat file.
  19. choice /c yn /n /m "Do another? (Y)es, (N)o?"
  20. IF ERRORLEVEL 2 GOTO END
  21. GOTO RETRY
  22. :STOPPED
  23. @echo:
  24. echo Operation cancelled. No files were replaced.
  25. :END
  26. PAUSE
Advertisement
Add Comment
Please, Sign In to add comment