Is it possible to remove or disable the button "Commands" - "Open command prompt window" from Total Commander settings?
I'd like to disable ways to start cmd.exe as much as possible. I know it's possible to disable the Command line at the bottom of the window, for example using RestrictInterface=2 in wincmd.ini. I'd like to also like to disable the command prompt button from the menu.
Disabling "Open command prompt window"
Moderators: white, Hacker, petermad, Stefan2
Re: Disabling "Open command prompt window"
That's just a plain text file, see \LANGUAGE\WCMD_ENG.MNU
Search in the MNU for 'prompt' and remove the whole 'MENUITEM' line. Save and restart TC.
Code: Select all
POPUP "&Commands"
MENUITEM "CD &Tree...\tAlt+F10", cm_CDtree
....
MENUITEM "Go &Back\tAlt+Left Arrow", 570
MENUITEM SEPARATOR
MENUITEM "Open comman&d prompt window", cm_ExecuteDOS
MENUITEM SEPARATOR
MENUITEM "Br&anch View (With Subdirs)\tCtrl+B", 2026
MENUITEM "&Open Desktop Folder", 2121
.... MENUITEM "Target&=Source", cm_matchsrc
END_POPUP
HTH?
Re: Disabling "Open command prompt window"
Trying to get security by obscurity is an useless effort.Sonny wrote: ↑2018-10-29, 10:08 UTC Is it possible to remove or disable the button "Commands" - "Open command prompt window" from Total Commander settings?
I'd like to disable ways to start cmd.exe as much as possible. I know it's possible to disable the Command line at the bottom of the window, for example using RestrictInterface=2 in wincmd.ini. I'd like to also like to disable the command prompt button from the menu.
The users will start other programs like Explorer and start cmd.exe from it.
So what is the real benefit from such configuration ?
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
Re: Disabling "Open command prompt window"
Or navigate to %SystemRoot%\system32 in TC and launch it from there. Or create a button in the button bar or an entry in the TC start menu that launches cmd.exe.
Sonny, please keep in mind that there are near endless possibilities to launch programs in Windows, even some you don't think of (like right-clicking in a common dialog, i.e. "Open", "Save" or "Save as"). Yes, most of them can be disabled via GPO, but probably not all of them, and restrictions might bring up other issues. Just saying.
[EDIT] Fixed typo [/EDIT]
Regards
Dalai
Last edited by Dalai on 2018-10-29, 15:25 UTC, edited 2 times in total.
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64
Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
- ghisler(Author)
- Site Admin
- Posts: 48021
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Disabling "Open command prompt window"
You should better change the security settings of cmd.exe so your users can't run it.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com