Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Shell 

Add 'Copy Contents to Clipboard' to Context Menu in Windows 10

Code
:: Add 'Copy Contents to Clipboard' to Context Menu in Windows 10

@Echo Off
Cls



net sess>nul 2>&1||(start mshta vbscript:code(close(Execute("CreateObject(""Shell.Application"").ShellExecute""%~0"",,,""RunAs"",1"^)^)^)&exit)

Cls & Mode CON  LINES=11 COLS=75 & Color 0E & Title Created By FreeBooter
Echo.
Echo.
Echo.
Echo.
Echo        Add 'Copy Contents to Clipboard' to Context Menu (Y/N)?  
Echo.      
Echo.
Echo.


Set /p input= RESPONSE:

If /i  Not %input%==Y (Goto :_Ex) Else (Goto :_Start)

:_Ex
If /i Not %input%==N  (Goto :EOF) Else (Goto :_RegRestore)



:_Start

Reg.exe delete "HKCR\batfile\shell\CopyContents" /v "Extended" /f  > Nul
Reg.exe add "HKCR\batfile\shell\CopyContents" /v "Icon" /t REG_SZ /d "DxpTaskSync.dll,-52" /f > Nul
Reg.exe add "HKCR\batfile\shell\CopyContents" /v "MUIVerb" /t REG_SZ /d "Copy Contents to Clipboard" /f > Nul
Reg.exe add "HKCR\batfile\shell\CopyContents\command" /ve /t REG_SZ /d "cmd /c clip < \"%%1\"" /f > Nul
REM ;For CMD files
Reg.exe delete "HKCR\cmdfile\shell\CopyContents" /v "Extended" /f  > Nul
Reg.exe add "HKCR\cmdfile\shell\CopyContents" /v "Icon" /t REG_SZ /d "DxpTaskSync.dll,-52" /f > Nul
Reg.exe add "HKCR\cmdfile\shell\CopyContents" /v "MUIVerb" /t REG_SZ /d "Copy Contents to Clipboard" /f > Nul
Reg.exe add "HKCR\cmdfile\shell\CopyContents\command" /ve /t REG_SZ /d "cmd /c clip < \"%%1\"" /f > Nul
REM ;For HTML files
Reg.exe delete "HKCR\htmlfile\shell\CopyContents" /v "Extended" /f  > Nul
Reg.exe add "HKCR\htmlfile\shell\CopyContents" /v "Icon" /t REG_SZ /d "DxpTaskSync.dll,-52" /f > Nul
Reg.exe add "HKCR\htmlfile\shell\CopyContents" /v "MUIVerb" /t REG_SZ /d "Copy Contents to Clipboard" /f > Nul
Reg.exe add "HKCR\htmlfile\shell\CopyContents\command" /ve /t REG_SZ /d "cmd /c clip < \"%%1\"" /f > Nul
REM ;For JS files
Reg.exe delete "HKCR\JSFile\shell\CopyContents" /v "Extended" /f  > Nul
Reg.exe add "HKCR\JSFile\shell\CopyContents" /v "Icon" /t REG_SZ /d "DxpTaskSync.dll,-52" /f > Nul
Reg.exe add "HKCR\JSFile\shell\CopyContents" /v "MUIVerb" /t REG_SZ /d "Copy Contents to Clipboard" /f > Nul
Reg.exe add "HKCR\JSFile\shell\CopyContents\command" /ve /t REG_SZ /d "cmd /c clip < \"%%1\"" /f > Nul
REM ;For REG files
Reg.exe delete "HKCR\regfile\shell\CopyContents" /v "Extended" /f  > Nul
Reg.exe add "HKCR\regfile\shell\CopyContents" /v "Icon" /t REG_SZ /d "DxpTaskSync.dll,-52" /f > Nul
Reg.exe add "HKCR\regfile\shell\CopyContents" /v "MUIVerb" /t REG_SZ /d "Copy Contents to Clipboard" /f > Nul
Reg.exe add "HKCR\regfile\shell\CopyContents\command" /ve /t REG_SZ /d "cmd /c clip < \"%%1\"" /f > Nul
REM ;For RTF files (Will not work for .rtf files if "Office Word" is the default app instead of "Wordpad")
Reg.exe delete "HKCR\rtffile\shell\CopyContents" /v "Extended" /f  > Nul
Reg.exe add "HKCR\rtffile\shell\CopyContents" /v "Icon" /t REG_SZ /d "DxpTaskSync.dll,-52" /f > Nul
Reg.exe add "HKCR\rtffile\shell\CopyContents" /v "MUIVerb" /t REG_SZ /d "Copy Contents to Clipboard" /f > Nul
Reg.exe add "HKCR\rtffile\shell\CopyContents\command" /ve /t REG_SZ /d "cmd /c clip < \"%%1\"" /f > Nul
REM ;For TXT and LOG files
Reg.exe delete "HKCR\txtfile\shell\CopyContents" /v "Extended" /f  > Nul
Reg.exe add "HKCR\txtfile\shell\CopyContents" /v "Icon" /t REG_SZ /d "DxpTaskSync.dll,-52" /f > Nul
Reg.exe add "HKCR\txtfile\shell\CopyContents" /v "MUIVerb" /t REG_SZ /d "Copy Contents to Clipboard" /f > Nul
Reg.exe add "HKCR\txtfile\shell\CopyContents\command" /ve /t REG_SZ /d "cmd /c clip < \"%%1\"" /f > Nul
REM ;For VBS files
Reg.exe delete "HKCR\VBSFile\shell\CopyContents" /v "Extended" /f  > Nul
Reg.exe add "HKCR\VBSFile\shell\CopyContents" /v "Icon" /t REG_SZ /d "DxpTaskSync.dll,-52" /f > Nul
Reg.exe add "HKCR\VBSFile\shell\CopyContents" /v "MUIVerb" /t REG_SZ /d "Copy Contents to Clipboard" /f > Nul
Reg.exe add "HKCR\VBSFile\shell\CopyContents\command" /ve /t REG_SZ /d "cmd /c clip < \"%%1\"" /f > Nul


Cls & Mode CON  LINES=11 COLS=40 & Color 0E & Title Created By FreeBooter
Echo.
Echo.
Echo.
Echo.
Echo           Adding Context Menu  
Echo.
Echo.
Echo.
Ping -n 6 localhost >Nul
Exit


:_RegRestore

Reg.exe delete "HKCR\batfile\shell\CopyContents" /f > Nul
Reg.exe delete "HKCR\cmdfile\shell\CopyContents" /f > Nul
Reg.exe delete "HKCR\htmlfile\shell\CopyContents" /f > Nul
Reg.exe delete "HKCR\JSFile\shell\CopyContents" /f > Nul
Reg.exe delete "HKCR\regfile\shell\CopyContents" /f > Nul
Reg.exe delete "HKCR\rtffile\shell\CopyContents" /f > Nul
Reg.exe delete "HKCR\txtfile\shell\CopyContents" /f > Nul
Reg.exe delete "HKCR\VBSFile\shell\CopyContents" /f > Nul



Cls & Mode CON  LINES=11 COLS=40 & Color 0D & Title Created By FreeBooter
Echo.
Echo.
Echo.
Echo.
Echo        Removing Context Menu  
Echo.
Echo.
Echo.
Ping -n 6 localhost >Nul
Exit


Possibly Related Threads...
Thread / Author Replies Views Last Post
by usa1010Nov 26, 2023 01:47 PM 5 242 Nov 26, 2023 01:47 PM
Last Post: Hackers
[C#] by john ronaldsadJul 28, 2022 05:01 PM 3 162 Jul 28, 2022 05:01 PM
Last Post: john ronaldsad
[Shell] by Cyber "Max" ShamanJan 25, 2022 08:56 PM 3 184 Jan 25, 2022 08:56 PM
Last Post: Cyber "Max" Shaman