Hack Forums
[Shell] ENABLE JavaScript NEW FILE CONTEXT MENU ITEM - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Software Development (https://hackforums.net/forumdisplay.php?fid=118)
+---- Thread: [Shell] ENABLE JavaScript NEW FILE CONTEXT MENU ITEM (/showthread.php?tid=6001528)



ENABLE JavaScript NEW FILE CONTEXT MENU ITEM - Emre_ - Aug 23, 2019

Code
:: Created by FreeBooter
@Echo Off
Cd %systemroot%\system32

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


:_Start
Cls & Mode CON  LINES=11 COLS=70 & Color 0D &Title Created By FreeBooter
Echo.
Echo       ╔══════════════════════════════════════════════════════╗
Echo       ║ Type (R) to REMOVE JavaScript FILE CONTEXT MENU ITEM ║  
Echo       ╚══════════════════════════════════════════════════════╝
Echo.
Echo.
Echo       ╔══════════════════════════════════════════════════════╗  
Echo       ║ Type (E) to ENABLE JavaScript FILE CONTEXT MENU ITEM ║  
Echo       ╚══════════════════════════════════════════════════════╝  



Set /p input= RESPONSE:
If /i  Not %input%==R (Goto :_Ex) Else (Goto :_Remove)

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








:_Remove
Reg.exe delete "HKCR\.js\ShellNew" /f


Cls & Mode CON  LINES=5 COLS=48 & Color 0E
Echo.
Echo.
Echo                     FINNISH

Ping -n 5  localhost > Nul
Exit



:_Enable
Reg.exe add "HKCR\.js\ShellNew" /v "NullFile" /t REG_SZ /d "" /f
Reg.exe add "HKCR\.js\ShellNew" /v "ItemName" /t REG_EXPAND_SZ /d "@%%SystemRoot%%\System32\acppage.dll,-6002" /f

Cls & Mode CON  LINES=5 COLS=48 & Color 0E
Echo.
Echo.
Echo                    FINNISH

Ping -n 5  localhost > Nul
Exit