Logging out under Menu Control

Prev Next Home Home Table Of Contents Index

LOGGING OUT UNDER MENU CONTROL

Logging out under menu control is one of the trickiest things to do. The problem is that as soon as LOGOUT executes, you no longer have access to the network. This means that if you are in a batch file, you are going to get a "Missing Batch File" error, unless the batch file is in the \LOGIN directory.

Another problem with logging out is making sure that your COMSPEC is pointing to a COMMAND.COM that is either on the local drive or in the \LOGIN directory. Otherwise you will get a "Cannot load COMMAND.COM" error.

Yet another problem that you need to deal with is that your PATH command needs to be changed so that it doesn't refer to mapped drives that are no longer accessible.

If you are logging off with a batch file, the batch file must be in the login directory or a local drive. If it is in the login directory your current drive must be the first network drive (usually F:) and this drive must not be map rooted to any directory.

What you need to do is create a batch file in the \LOGIN directory called OFF.BAT.


Example:
F:\LOGIN\OFF.BAT

SET COMSPEC=C:\COMMAND.COM LOGOUT C: PATH=C:\DOS

To run this file the current directory must be F:\LOGIN. When using the MarxMenu command Logoff, MarxMenu changes to the \LOGIN directory of the first network drive, removes any map roots on this drive, and runs OFF.BAT.

Setting up an OFF.BAT file is compatible with MarxMenu's automatic network logoff feature. This is where you can set the amount of time to wait at a menu before it automatically logs you off the network.

Another way to logout under MarxMenu is to stuff the LOGOUT command into the keyboard buffer and exit MarxMenu.


Example:
OnKey ESC |StuffKBD 'LOGOUT' + CR |ExitMenu

Another logout trick is to use the LOGOFF utility from the Computer Tyme Network Survival Kit. This program automatically fixes your PATH and COMSPEC after the logoff occurs.

Prev Next Home Home Table Of Contents Index

Sponsors
Shopping
Forum
Forum
email
EMail
Index
Index
Home
Home