Using the SHELL= Command

Prev Next Home Home Table Of Contents Index

USING THE SHELL= COMMAND

If you really want to make it impossible to break out to DOS then change the SHELL= statement in your CONFIG.SYS file to read:

SHELL=COMMAND.COM /E:400 /C AUTOEXEC.BAT

With this command, if they get out of the batch file it locks the system up. In some cases this is better than letting the user get access to the command line.

To use this feature you need to stay in a steady stream of batch files all the way to the menu. If you ever exit or break out of the batch files the system locks up. Without the /P switch, COMMAND.COM is never loaded permanent. So if AUTOEXEC and the batch file that they jump to ever finishes the computer locks up. You can't break out to COMMAND.COM because there is no COMMAND.COM to break out to.

If you try to use this with Novell's LOGIN.EXE then you won't be able to use the 'EXIT <string>' command in your login script. This is because EXIT will exit to DOS and lock up. You will need to create a LOG.BAT file as follows:


 LOG.BAT
 =======
 :Start
 LOGIN
 REM ** Stay in loop till LOGIN succeeds **
 if ErrorLevel 1 goto Start
 ...
 <other startup commands>
 ...
 Marx MainMenu

To get to a command line using this system you will need to run COMMAND.COM or DOLIST.EXE from the menu. In the case of COMMAND.COM you will run:


 COMMAND.COM /E:400

This ensures that this second COMMAND.COM has enough environment space to allow for SET commands.

Prev Next Home Home Table Of Contents Index

Sponsors
Shopping
Forum
Forum
email
EMail
Index
Index
Home
Home