Guest User

Untitled

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