Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @ECHO OFF
- :RETRY
- cls
- echo BASE.PNG VERSION.
- echo base.png in the .bat folder will be copied.
- @echo:
- echo Enter full path to folder containing files to be replaced.
- echo e.g. C:\MyTheme.theme\Bundles\com.avi.aviapp:
- set /P "pathy="
- cls
- echo All .png images in this folder will be replaced with base.png:
- echo %pathy%
- @echo:
- choice /c ync /n /m "Proceed? (Y)es, (N)o or (C)ancel?"
- IF ERRORLEVEL 3 GOTO STOPPED
- IF ERRORLEVEL 2 GOTO RETRY
- for %%a in ("%pathy%\*.png") do COPY /Y "base.png" "%%a"
- 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.
- choice /c yn /n /m "Do another? (Y)es, (N)o?"
- IF ERRORLEVEL 2 GOTO END
- GOTO RETRY
- :STOPPED
- @echo:
- echo Operation cancelled. No files were replaced.
- :END
- PAUSE
Advertisement
Add Comment
Please, Sign In to add comment