In need of boot advice

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

I recently installed Netware 5.1 server over Win 98se (fortunately this time without screwing it up). On boot the Netware server loads by default (as evidenced in the current, very simple autoexec.bat file):

Code: [ Select ]
C:
CD \NWSERVER
SERVER
  1. C:
  2. CD \NWSERVER
  3. SERVER


So, by default the server loads. After I "down" the server Win98se automatically loads instead (I still haven't figured that one out). That's OK -- I guess, because I at least managed to keep 98 intact this time.

However, I would like to have my choice of Win98 or the NW server on boot. I'm sure it's just a simple change needed to the autoexec file.

My first thought was to rem out the CD \NWServer and Server lines and let it default to the DOS prompt then type in WIN or choose the server as I may, but I'd prefer to get it to where there's just a select option.

Any ideas? (I only learned DOS this last year -- go figure -- and am not very proficient with batch file scripting yet)
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • ModernDestroyer
  • Professor
  • Professor
  • User avatar
  • Posts: 794
  • Loc: California

Post 3+ Months Ago

the easiest way I can think about is this, change your autoexec.bat
file. Separte the parts of your autoexec file the one for win98 and the one for NT. Save the parts for NT in a new file called n.bat and save the parts for win98 in a bat called w.bat

Examples below :D


Autoexec.bat
Code: [ Select ]
@echo off
echo w - For win98
echo n - for NT
  1. @echo off
  2. echo w - For win98
  3. echo n - for NT


Autoexec.bat second way
Code: [ Select ]
@echo off
choice /n /c:12 Pick 1 for Win98 and 2 for NT
if errorlevel 2 n.bat
if not errorlevel 2 if errorlevel 1 w.bat
  1. @echo off
  2. choice /n /c:12 Pick 1 for Win98 and 2 for NT
  3. if errorlevel 2 n.bat
  4. if not errorlevel 2 if errorlevel 1 w.bat


w.bat
Code: [ Select ]
c:
win
  1. c:
  2. win


n.bat
Code: [ Select ]
C:
CD \NWSERVER
SERVER
  1. C:
  2. CD \NWSERVER
  3. SERVER



The second way all you have to do is hit the coresponding number and the bat file is executed, the first way you have to enter the number and hit enter after.

Let me know if this will work for you, some versions of NT may not have the choice command. Enjoy :D
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Thank you. I'll try that. That is what I was looking for. (I have a lousy memory at times), but I think that is going to work. I'll let you know.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Worked perfectly the first time. I used the second method. Again, thanks.
  • ModernDestroyer
  • Professor
  • Professor
  • User avatar
  • Posts: 794
  • Loc: California

Post 3+ Months Ago

glad to help :D Also you can have an automatic choice that after (1 to 99 seconds) elapses it will automatically select the default choice.

Code: [ Select ]
@echo off
choice /n /c:12 /t:1,20 Pick 1 for Win98 and 2 for NT
if errorlevel 2 n.bat
if not errorlevel 2 if errorlevel 1 w.bat
  1. @echo off
  2. choice /n /c:12 /t:1,20 Pick 1 for Win98 and 2 for NT
  3. if errorlevel 2 n.bat
  4. if not errorlevel 2 if errorlevel 1 w.bat


in the code above the /t:1,20 is the section that will tell it your default and the amount of time to wait. Something else to try if you got time to play around with it. I have to think about it for a minute but there was a way to change the color of your DOS screen. The colors are the basic 16 that DOS has. Anyways glad to help, enjoy :D
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Posts: 23456
  • Loc: Woodbridge VA

Post 3+ Months Ago

Changing the colors on the DOS screen I can do with ansi.sys and prompt.

syntax:
Code: [ Select ]
DEVICE=Drive:\Path\ANSI.SYS /x/k/r


Then once ansi.sys is loaded something like:
Code: [ Select ]
PROMPT $e[35;44;1m$p$g$e$[33;44;1m




I did forget about the time-out though. That's a nice addition, because I'll typically want it to default to 98 most of the time (The NWSERVER - is just to refresh my memory on Novell).

I'll add that in. I also echo'd some more user-friendly instructions so my girlfriend can figure it out when she's using my computer *lol
  • ModernDestroyer
  • Professor
  • Professor
  • User avatar
  • Posts: 794
  • Loc: California

Post 3+ Months Ago

Something to that effect to get the colors haven't done that in about 8 years.
Yea got to help the girlfriends, every once in a while :lol:

Post Information

  • Total Posts in this topic: 7 posts
  • Users browsing this forum: No registered users and 71 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.