Advertisement
Urik_Kane

open_with_avidemux_registry_win64_remove

Jan 7th, 2021
1,351
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.71 KB | None | 0 0
  1. @echo off
  2. setlocal enabledelayedexpansion
  3. title Remove Avidemux from registry
  4.  
  5. :check_elevation
  6. net session >nul 2>&1
  7. if not %errorlevel%==0 echo   & echo Error: Must run as administrator. & pause>nul & goto :eof
  8.  
  9. :SetKeys
  10. reg query "HKCR\Applications\avidemux.exe\shell\open\command">nul 2>&1 || ( echo Registry key has already been deleted - nothing to delete & pause & goto :eof)
  11. reg delete "HKCR\Applications\avidemux.exe\shell\open\command" /f>nul 2>&1
  12.  
  13. :: results
  14. echo.
  15. echo -------------------------------------------------------
  16. if !errorlevel!==0 ( echo  Succesfully deleted key ) else ( echo  Failed to delete key)
  17. echo -------------------------------------------------------
  18. echo.
  19. pause & goto :eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement