Advertisement
FlyFar

7-Zip Icons Changer (Batch/CMD)

Oct 21st, 2021
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.70 KB | None | 0 0
  1. REM This program changes Registry values for 7-Zip Icons
  2. ::Using UTF-8 Encoding
  3. chcp 65001
  4. echo off
  5. cls
  6. title 7-zip Icon Changer
  7. echo This script will change icons for 7-zip files
  8. echo such as .7z, .001, etc...
  9. echo.
  10. set /p folder="Drag and drop icons folder> "
  11. cd /d %folder%
  12. title 7-zip Icon Changer - Please wait...
  13. echo Making registry changes. Please wait...
  14. echo.
  15. ::Changing registry
  16. FOR %%e IN (*.ico) DO (
  17.     echo HKCR\7-Zip.%%~ne "%%~ne Archive"
  18.     REG ADD HKCR\7-Zip.%%~ne /ve /d "%%~ne Archive" /f
  19.     echo HKCR\7-Zip.%%~ne\DefaultIcon "%cd%\%%e"
  20.     REG ADD HKCR\7-Zip.%%~ne\DefaultIcon /ve /d "%cd%\%%e" /f
  21.     echo.
  22. )
  23. title 7-zip Icon Changer - Finished
  24. echo Finished.
  25. pause
  26. endlocal
  27. goto :eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement