Advertisement
FreeBooter

BatContextMenu

Nov 14th, 2016
369
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.71 KB | None | 0 0
  1. :: Created by FreeBooter
  2. @Echo Off
  3. Title Dost-Tech.com
  4. Cd %systemroot%\system32
  5. Call :IsAdmin
  6.  
  7.  
  8. :_Start
  9. Cls & Mode CON  LINES=11 COLS=60 & Color 0D &Title Created By FreeBooter
  10. Echo.
  11. Echo       ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»
  12. Echo       º Type (R) to REMOVE BATCH FILE CONTEXT MENU ITEM º  
  13. Echo       ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ
  14. Echo.
  15. Echo.
  16. Echo       ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ»  
  17. Echo       º Type (E) to ENABLE BATCH FILE CONTEXT MENU ITEM º  
  18. Echo       ÈÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍͼ  
  19.  
  20.  
  21.  
  22. Set /p input= RESPONSE:
  23. If /i  Not %input%==R (Goto :_Ex) Else (Goto :_Remove)
  24.  
  25. :_Ex
  26. If /i  Not %input%==E  (Goto :_Start) Else (Goto :_Enable)
  27.  
  28.  
  29.  
  30. :_Remove
  31. Reg.exe delete "HKCR\.bat\ShellNew" /f
  32.  
  33.  
  34. Cls & Mode CON  LINES=5 COLS=48 & Color 0E
  35.  Echo.
  36.  Echo.
  37.  Echo                     FINNISH
  38.  
  39. Ping -n 5  localhost > Nul
  40. Exit
  41.  
  42.  
  43.  
  44. :_Enable
  45. Reg.exe add "HKCR\.bat\ShellNew" /v "NullFile" /t REG_SZ /d "" /f
  46. Reg.exe add "HKCR\.bat\ShellNew" /v "ItemName" /t REG_EXPAND_SZ /d "@%%SystemRoot%%\System32\acppage.dll,-6002" /f
  47.  
  48. Cls & Mode CON  LINES=5 COLS=48 & Color 0E
  49.  Echo.
  50.  Echo.
  51.  Echo                    FINNISH
  52.  
  53. Ping -n 5  localhost > Nul
  54. Exit
  55.  
  56.  
  57. :IsAdmin
  58. Reg.exe query "HKU\S-1-5-19\Environment"
  59. If Not %ERRORLEVEL% EQU 0 (
  60.  Cls & Mode CON  LINES=5 COLS=48 & Color 0C & Title - WARNING -
  61.  Echo.
  62.  Echo.
  63.  Echo  YOU MUST HAVE ADMINISTRATOR RIGHTS TO CONTINUE
  64.  Pause > Nul & Exit
  65. )
  66. Cls
  67. goto:eof
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement