SuperCMD icon indicating copy to clipboard operation
SuperCMD copied to clipboard

have this replace cmd by delault.

Open ibay770 opened this issue 2 years ago • 3 comments

Thank you for your awesome software. Is it possible to force SuperCMD to run all scripts by default instead of the regular one, and to force it to run with TI privileges by default?

ibay770 avatar Aug 01 '22 18:08 ibay770

Hi @ibay770

Do you mean to associate script file types like BAT and CMD so they run with SuperCMD by default?

Technically it should be possible. You can run a script file with CMD started by SuperCMD by running C:\q\SuperCMD\SuperCMD.exe /TI /Run:"%windir%\System32\cmd.exe" /c C:\SomeScript.bat.

For a simple Command Prompt, you can run C:\q\SuperCMD\SuperCMD.exe /TI /Run:"%windir%\System32\cmd.exe".

However, there is no simple "associate SuperCMD with BAT/CMD files" nor "replace Windows CMD with SuperCMD" options you can simply click to enable, for good reasons. Generally this is a bad idea and could create serious security implications.

Raymai97 avatar Aug 02 '22 12:08 Raymai97

"However, there is no simple "associate SuperCMD with BAT/CMD files" nor "replace Windows CMD with SuperCMD" options you can simply click to enable, for good reasons. Generally this is a bad idea and could create serious security implications." Would it be possible to create it? I don't mind testing it on my system.

ibay770 avatar Aug 12 '22 22:08 ibay770

Windows supports default program replacement, but there are significant risks and it is not recommended to do so You can create a new reg file like this and import it into the registry. The corresponding file path for Debugger is the full path of your SuperCMD.exe file

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\cmd.exe]

"Debugger"="C:\\q\\SuperCMD\\SuperCMD.exe"

Additionally, you need to be aware that the startup parameters may vary.

BluePointLilac avatar Apr 28 '23 01:04 BluePointLilac