TIP: Click on subject to list as thread! ANSI
echo: alt_dos
to: All
from: Gary Welles
date: 2005-02-20 09:08:26
subject: Re: PNW (restarting server?)

From: Gary Welles 

Arkady V.Belousov wrote:

AB> Gary Welles wrote:

GW> In SWAPNET.BAT:
GW>      echo ldtcp=y >! c:\boot.dat
GW>      reboot
GW> In AUTOEXEC.BAT:
GW>      set /r c:\boot.dat >& nul
GW>      del /q c:\boot.dat >& nul

AB>     Be easier:
AB>
AB> echo {at}set ldtcp=y>c:\bootset.bat
AB> reboot
AB>
AB> if exist c:\bootset.bat call bootset.bat
AB> if exist c:\bootset.bat del bootset.bat>nul

Tks!

Arkady's suggestion of a batch file could go beyond setting
variables.

So far I've only advanced to setting multiple variables that I
would otherwise select via SWITCH in config.sys.  Here to load
the TCP/IP stack and not load DESQview/X:

  echo ldtcp=y%=r%=nlddvx=n >! c:\boot.dat
  reboot

  if exist c:\boot.dat (set /r c:\boot.dat %+ del /q c:\boot.dat)

When the echo/reboot commands are executed from my check email
batch file, it would make sense to go ahead and check the
e-mail.  Perhaps there is a way to preserve the command that
resulted in the reboot and execute it after autoexec.bat.

BTW: Loading the disk cache after the network drivers appears
to have had a good effect.

-- Gary Welles



--- Internet Rex 2.29
* Origin: The gateway at Capitol City Online (1:2320/105.999)
SEEN-BY: 633/267 270 5030/786
@PATH: 2320/105 261/38 123/500 106/2000 633/267

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.