Hack Forums
[Shell] Add or Remove Edit with Paint 3D context menu in Windows 10 - 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] Add or Remove Edit with Paint 3D context menu in Windows 10 (/showthread.php?tid=6003869)



Add or Remove Edit with Paint 3D context menu in Windows 10 - Emre_ - Aug 31, 2019

Code
:: Add or Remove Edit with Paint 3D context menu in Windows 10

@Echo Off

Cls & Color 0E

call :IsAdmin




Cls & Mode CON  LINES=11 COLS=80 & Color 0E & Title Created By FreeBooter
Echo.
Echo.
Echo.
Echo        Do You Want to Remove "Edit with Paint 3D" from 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\SystemFileAssociations\.3mf\Shell\3D Edit" /f >Nul
Reg.exe delete "HKCR\SystemFileAssociations\.bmp\Shell\3D Edit" /f >Nul
Reg.exe delete "HKCR\SystemFileAssociations\.fbx\Shell\3D Edit" /f >Nul
Reg.exe delete "HKCR\SystemFileAssociations\.gif\Shell\3D Edit" /f >Nul
Reg.exe delete "HKCR\SystemFileAssociations\.jfif\Shell\3D Edit" /f >Nul
Reg.exe delete "HKCR\SystemFileAssociations\.jpe\Shell\3D Edit" /f >Nul
Reg.exe delete "HKCR\SystemFileAssociations\.jpeg\Shell\3D Edit" /f >Nul
Reg.exe delete "HKCR\SystemFileAssociations\.jpg\Shell\3D Edit" /f >Nul
Reg.exe delete "HKCR\SystemFileAssociations\.png\Shell\3D Edit" /f >Nul
Reg.exe delete "HKCR\SystemFileAssociations\.tif\Shell\3D Edit" /f >Nul
Reg.exe delete "HKCR\SystemFileAssociations\.tiff\Shell\3D Edit" /f >Nul


Cls & Mode CON  LINES=11 COLS=65 & Color 0E & Title Created By FreeBooter
Echo.
Echo.
Echo.
Echo.
Echo         Removing "Edit with Paint 3D" from Context Menu
Echo.
Echo.
Echo.
Ping -n 6 localhost >Nul
Exit


:_RegRestore

Reg.exe add "HKCR\SystemFileAssociations\.3mf\Shell\3D Edit" /ve /t REG_SZ /d "@%%SystemRoot%%\system32\mspaint.exe,-59500" /f
Reg.exe delete "HKCR\SystemFileAssociations\.3mf\Shell\3D Edit" /v "Extended" /f
Reg.exe add "HKCR\SystemFileAssociations\.3mf\Shell\3D Edit\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\system32\mspaint.exe \"%%1\" /ForceBootstrapPaint3D" /f
Reg.exe add "HKCR\SystemFileAssociations\.bmp\Shell\3D Edit" /ve /t REG_SZ /d "@%%SystemRoot%%\system32\mspaint.exe,-59500" /f
Reg.exe delete "HKCR\SystemFileAssociations\.bmp\Shell\3D Edit" /v "Extended" /f
Reg.exe add "HKCR\SystemFileAssociations\.bmp\Shell\3D Edit\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\system32\mspaint.exe \"%%1\" /ForceBootstrapPaint3D" /f
Reg.exe add "HKCR\SystemFileAssociations\.fbx\Shell\3D Edit" /ve /t REG_SZ /d "@%%SystemRoot%%\system32\mspaint.exe,-59500" /f
Reg.exe delete "HKCR\SystemFileAssociations\.fbx\Shell\3D Edit" /v "Extended" /f
Reg.exe add "HKCR\SystemFileAssociations\.fbx\Shell\3D Edit\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\system32\mspaint.exe \"%%1\" /ForceBootstrapPaint3D" /f
Reg.exe add "HKCR\SystemFileAssociations\.gif\Shell\3D Edit" /ve /t REG_SZ /d "@%%SystemRoot%%\system32\mspaint.exe,-59500" /f
Reg.exe delete "HKCR\SystemFileAssociations\.gif\Shell\3D Edit" /v "Extended" /f
Reg.exe add "HKCR\SystemFileAssociations\.gif\Shell\3D Edit\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\system32\mspaint.exe \"%%1\" /ForceBootstrapPaint3D" /f
Reg.exe add "HKCR\SystemFileAssociations\.jfif\Shell\3D Edit" /ve /t REG_SZ /d "@%%SystemRoot%%\system32\mspaint.exe,-59500" /f
Reg.exe delete "HKCR\SystemFileAssociations\.jfif\Shell\3D Edit" /v "Extended" /f
Reg.exe add "HKCR\SystemFileAssociations\.jfif\Shell\3D Edit\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\system32\mspaint.exe \"%%1\" /ForceBootstrapPaint3D" /f
Reg.exe add "HKCR\SystemFileAssociations\.jpe\Shell\3D Edit" /ve /t REG_SZ /d "@%%SystemRoot%%\system32\mspaint.exe,-59500" /f
Reg.exe delete "HKCR\SystemFileAssociations\.jpe\Shell\3D Edit" /v "Extended" /f
Reg.exe add "HKCR\SystemFileAssociations\.jpe\Shell\3D Edit\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\system32\mspaint.exe \"%%1\" /ForceBootstrapPaint3D" /f
Reg.exe add "HKCR\SystemFileAssociations\.jpeg\Shell\3D Edit" /ve /t REG_SZ /d "@%%SystemRoot%%\system32\mspaint.exe,-59500" /f
Reg.exe delete "HKCR\SystemFileAssociations\.jpeg\Shell\3D Edit" /v "Extended" /f
Reg.exe add "HKCR\SystemFileAssociations\.jpeg\Shell\3D Edit\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\system32\mspaint.exe \"%%1\" /ForceBootstrapPaint3D" /f
Reg.exe add "HKCR\SystemFileAssociations\.jpg\Shell\3D Edit" /ve /t REG_SZ /d "@%%SystemRoot%%\system32\mspaint.exe,-59500" /f
Reg.exe delete "HKCR\SystemFileAssociations\.jpg\Shell\3D Edit" /v "Extended" /f
Reg.exe add "HKCR\SystemFileAssociations\.jpg\Shell\3D Edit\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\system32\mspaint.exe \"%%1\" /ForceBootstrapPaint3D" /f
Reg.exe add "HKCR\SystemFileAssociations\.png\Shell\3D Edit" /ve /t REG_SZ /d "@%%SystemRoot%%\system32\mspaint.exe,-59500" /f
Reg.exe delete "HKCR\SystemFileAssociations\.png\Shell\3D Edit" /v "Extended" /f
Reg.exe add "HKCR\SystemFileAssociations\.png\Shell\3D Edit\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\system32\mspaint.exe \"%%1\" /ForceBootstrapPaint3D" /f
Reg.exe add "HKCR\SystemFileAssociations\.tif\Shell\3D Edit" /ve /t REG_SZ /d "@%%SystemRoot%%\system32\mspaint.exe,-59500" /f
Reg.exe delete "HKCR\SystemFileAssociations\.tif\Shell\3D Edit" /v "Extended" /f
Reg.exe add "HKCR\SystemFileAssociations\.tif\Shell\3D Edit\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\system32\mspaint.exe \"%%1\" /ForceBootstrapPaint3D" /f
Reg.exe add "HKCR\SystemFileAssociations\.tiff\Shell\3D Edit" /ve /t REG_SZ /d "@%%SystemRoot%%\system32\mspaint.exe,-59500" /f
Reg.exe delete "HKCR\SystemFileAssociations\.tiff\Shell\3D Edit" /v "Extended" /f
Reg.exe add "HKCR\SystemFileAssociations\.tiff\Shell\3D Edit\command" /ve /t REG_EXPAND_SZ /d "%%SystemRoot%%\system32\mspaint.exe \"%%1\" /ForceBootstrapPaint3D" /f


Cls & Mode CON  LINES=11 COLS=65 & Color 0E & Title Created By FreeBooter
Echo.
Echo.
Echo.
Echo.
Echo        Adding Right Click "Edit with Paint 3D" to Context Menu  
Echo.
Echo.
Echo.
Ping -n 6 localhost >Nul
Exit




:IsAdmin
Reg.exe query "HKU\S-1-5-19\Environment"
If Not %ERRORLEVEL% EQU 0 (
Cls & Echo You must have administrator rights to continue ...
Pause & Exit
)
Cls
goto:eof