Table Of Contents | Index |
This program sets an environment variable NET to the best network shell based on the DOS version and the presence of either EMS or XMS memory. You can then load the net shell by putting %NET% in your batch file. If both EMS and XMS are available, EMS is selected.
Usage: BESTNET (/I/X/L)
BESTNET > NUL ;This stops BestNet from writing to the screen.BestNet also sets an environment variable NETD that contains the drive letter of the first network drive. This also can be used in a batch file to switch to the network drive and log in./I Ignore XMS and EMS Shells. /X Selects XMS over EMS where both exist. /L Includes QEMM LoadHi command if LOADHI.COM is available.
Setting NET=EMSNET3.EXE
A batch file to login might look like this:
IPX BESTNET %NET% ;might contain EMSNETX.EXE %NETD% ;might contain F: LOGINThis program helps take some of the pain out of booting up into Netware. One of the problems on a network is that some people are running different versions of DOS than others. Some have EMS memory and some have XMS memory. Novell provides several shells for different computer environments. BestNet helps choose the best net for your machine to load. This makes workstation installation easier.
Here's how you use it. Your AUTOEXEC.BAT might look like this:
@Echo Off IPX SET COMSPEC=X:COMMAND.COM BESTNET %NET% SET NET= F: LOGINThe SET COMSPEC command has nothing to do with BestNet. It's a trick I learned that eliminates DOS going back to the floppy for Command.com. Setting the comspec before loading the net shell fixes this problem.
Another trick is to create a file called LOADNET.BAT as follows:
BESTNET %NET% SET NET= %NETD% STARTUPThe idea here is that each AUTOEXEC.BAT on the net ends with the command LOADNET. This causes the AUTOEXEC to jump to LOADNET. LOADNET is exactly the same for all workstations. You also put LOADNET in the LOGIN directory. LOADNET loads the best shell and then branches to a batch file called STARTUP which does your login.AUTOEXEC.BAT ----> LOADNET.BAT ----> STARTUP.BAT
The reason for three batch files is as follows. If you are booting from a boot ROM, you can have different AUTOEXEC.BAT files for each user. These branch to LOADNET which makes the transition from ROM to the login directory. As soon as the net shell loads, the ROM disappears and the LOADNET file continues in the login directory.
The idea is that LOADNET never changes. You can change the AUTOEXEC.BAT the STARTUP.BAT files any way you want and still make a smooth transition from your boot drive to the network.
Table Of Contents | Index |
|