DOS Menu
#1
DOS Menu
Dos is a little before my time and I'm wanting to write a simple DOS menu system.
It's actually for a ghost boot disk that I'd like to write to a bootable CD so I can launch different network drivers etc.
Any pointers?
It's actually for a ghost boot disk that I'd like to write to a bootable CD so I can launch different network drivers etc.
Any pointers?
#2
Scooby Regular
Join Date: Sep 1999
Location: Swindon, Wiltshire Xbox Gamertag: Gutgouger
Posts: 6,956
Likes: 0
Received 0 Likes
on
0 Posts
Try google
http://www.allenware.com/icsw/icswidx.htm (lesson 6)
or
http://home.att.net/~gobruen/progs/d...h.html##choice
or if you're lazy...
http://www.allenware.com/icsw/icswidx.htm (lesson 6)
or
http://home.att.net/~gobruen/progs/d...h.html##choice
or if you're lazy...
@ECHO OFF
ECHO 1 - Stars
ECHO 2 - Dollar Signs
ECHO 3 - Crosses
CHOICE /C:123
IF errorlevel 3 goto OPT3
IF errorlevel 2 goto OPT2
IF errorlevel 1 goto OPT1
:OPT1
ECHO *******************
ECHO.
PAUSE
CLS
EXIT
:OPT2
ECHO $$$$$$$$$$$$$$$$$$$$
ECHO.
PAUSE
CLS
EXIT
:OPT3
ECHO +++++++++++++++++++++
ECHO.
PAUSE
CLS
EXIT
ECHO 1 - Stars
ECHO 2 - Dollar Signs
ECHO 3 - Crosses
CHOICE /C:123
IF errorlevel 3 goto OPT3
IF errorlevel 2 goto OPT2
IF errorlevel 1 goto OPT1
:OPT1
ECHO *******************
ECHO.
PAUSE
CLS
EXIT
:OPT2
ECHO $$$$$$$$$$$$$$$$$$$$
ECHO.
PAUSE
CLS
EXIT
:OPT3
ECHO +++++++++++++++++++++
ECHO.
PAUSE
CLS
EXIT
Last edited by Iain Young; 10 November 2005 at 01:39 PM.
#5
Scooby Regular
iTrader: (1)
Keep in mind that the choice dos command is no longer a part of the standard windows 2K/XP distribution. So if you're using Win2k/XP that batch file won't work
I think it's still available as part of the Windows NT4 Resouce Kit and in Win95/98, i.e Dos V6/7, so you could copy it from there or off the net.
I think it's still available as part of the Windows NT4 Resouce Kit and in Win95/98, i.e Dos V6/7, so you could copy it from there or off the net.
#6
Originally Posted by bioforger
Keep in mind that the choice dos command is no longer a part of the standard windows 2K/XP distribution. So if you're using Win2k/XP that batch file won't work
I think it's still available as part of the Windows NT4 Resouce Kit and in Win95/98, i.e Dos V6/7, so you could copy it from there or off the net.
I think it's still available as part of the Windows NT4 Resouce Kit and in Win95/98, i.e Dos V6/7, so you could copy it from there or off the net.
I created an 'MS-Dos' disk from Ghost but 'choice' doesn't appear to be included.
Cheers all
#7
Scooby Regular
Join Date: Sep 1999
Location: Swindon, Wiltshire Xbox Gamertag: Gutgouger
Posts: 6,956
Likes: 0
Received 0 Likes
on
0 Posts
Yep choice was removed in w2k and xp, but is back in for 2003 or some bizarre reason.
It is part of the win2k resource kit http://www.microsoft.com/windows2000...ro_tools.asp#C
It is part of the win2k resource kit http://www.microsoft.com/windows2000...ro_tools.asp#C
Trending Topics
#8
Scooby Regular
Join Date: Sep 1999
Location: Swindon, Wiltshire Xbox Gamertag: Gutgouger
Posts: 6,956
Likes: 0
Received 0 Likes
on
0 Posts
You can also get it from here...
http://support.microsoft.com/default...en-us%3B117600
(p.s. google again )
http://support.microsoft.com/default...en-us%3B117600
(p.s. google again )
#9
Scooby Regular
iTrader: (1)
Join Date: Jul 2004
Location: There on the stair
Posts: 10,208
Likes: 0
Received 0 Likes
on
0 Posts
You could just paint a simple text menu and have a series of batch files that correspond to the name of the option you want:
1. Option1
2. Option2
3. Option3
etc, etc
Then you type 1 and it runs 1.bat
1. Option1
2. Option2
3. Option3
etc, etc
Then you type 1 and it runs 1.bat
#10
Scooby Regular
Join Date: Sep 1999
Location: Swindon, Wiltshire Xbox Gamertag: Gutgouger
Posts: 6,956
Likes: 0
Received 0 Likes
on
0 Posts
You need to be at a command prompt for that to work though Kieran. Jowl said he wanted a boot menu...
The choice.com in msdos6.22 works fine in win2k andxp, so I'd just use that...
The choice.com in msdos6.22 works fine in win2k andxp, so I'd just use that...
#11
Again Thanks for everyone's help.
Think I might just with the http://www.netbootdisk.com/ option (as I'm lazy!) for now.
I'll investigate writing my own scripts but the netbootdisk is great!
Think I might just with the http://www.netbootdisk.com/ option (as I'm lazy!) for now.
I'll investigate writing my own scripts but the netbootdisk is great!
Thread
Thread Starter
Forum
Replies
Last Post