FreeBooter

Add_Copy-Move_To_Folder_to_context_menu.bat

Apr 2nd, 2024
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.54 KB | None | 0 0
  1. :: Add Copy To and Move to Context Menu in Windows 10 and Windows 11
  2.  
  3.  
  4. @Echo Off
  5. Cls & Color 1A
  6.  
  7. (Net session >nul 2>&1)||(PowerShell start """%~0""" -verb RunAs & Exit /B)
  8.  
  9.  
  10.  
  11. :Ask
  12. Cls & Mode CON  LINES=6 COLS=80 & Color 0E & Title Created By FreeBooter
  13. Echo.
  14. Echo.
  15. Echo        Add "Copy To..." and "Move To..." to Context Menu (A)  
  16. Echo.      
  17. Echo        Remove "Copy To..." and "Move To..." from Context Menu (R)
  18. Echo.
  19.  
  20.  
  21. Set /p input=^>
  22.  
  23. If /i  Not %input%==A (Goto :_Ex) Else (Goto :_Add)
  24.  
  25. :_Ex
  26. If /i Not %input%==R  (Goto :ASK) Else (Goto :_RegRestore)
  27.  
  28.  
  29.  
  30. :_Add
  31.  
  32. Reg.exe add "HKCR\AllFilesystemObjects\shellex\ContextMenuHandlers\CopyToFolder" /ve /t REG_SZ /d "{C2FBB630-2971-11d1-A18C-00C04FD75D13}" /f > Nul
  33. Reg.exe add "HKCR\AllFilesystemObjects\shellex\ContextMenuHandlers\MoveToFolder" /ve /t REG_SZ /d "{C2FBB631-2971-11D1-A18C-00C04FD75D13}" /f > Nul
  34.  
  35.  
  36. Cls & Mode CON  LINES=11 COLS=80 & Color 0E & Title Created By FreeBooter
  37. Echo.
  38. Echo.
  39. Echo.
  40. Echo.
  41. Echo           Adding "Copy To..." and "Move To..." to context menu  
  42. Echo.
  43. Echo.
  44. Echo.
  45. Ping -n 5 localhost >Nul
  46. Exit
  47.  
  48.  
  49. :_RegRestore
  50.  
  51. Reg.exe add "HKCR\AllFilesystemObjects\shellex\ContextMenuHandlers\CopyToFolder" /f > Nul
  52. Reg.exe add "HKCR\AllFilesystemObjects\shellex\ContextMenuHandlers\MoveToFolder" /f > Nul
  53.  
  54.  
  55. Cls & Mode CON  LINES=11 COLS=80 & Color 0D & Title Created By FreeBooter
  56. Echo.
  57. Echo.
  58. Echo.
  59. Echo.
  60. Echo           Removing "Copy To..." and "Move To..." from context menu    
  61. Echo.
  62. Echo.
  63. Echo.
  64. Ping -n 5 localhost >Nul
  65. Exit
  66.  
Add Comment
Please, Sign In to add comment