Disabling "Open command prompt window"

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Sonny
Junior Member
Junior Member
Posts: 3
Joined: 2013-05-31, 09:31 UTC

Disabling "Open command prompt window"

Post by *Sonny »

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.
User avatar
Stefan2
Power Member
Power Member
Posts: 4133
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Disabling "Open command prompt window"

Post by *Stefan2 »

Sonny wrote: 2018-10-29, 10:08 UTC I'd like to also like to disable the command prompt button from the menu.
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? :D
 
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6450
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: Disabling "Open command prompt window"

Post by *Horst.Epp »

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.
Trying to get security by obscurity is an useless effort.
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
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Disabling "Open command prompt window"

Post by *Dalai »

Horst.Epp wrote: 2018-10-29, 11:32 UTCThe users will start other programs like Explorer and start cmd.exe from it.
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
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Disabling "Open command prompt window"

Post by *ghisler(Author) »

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
Post Reply