Go Back   Forums > Community Chatterbox > Tech Corner
Memberlist Forum Rules Today's Posts
Search Forums:
Click here to use Advanced Search

Reply
 
Thread Tools Display Modes
Old 04-11-2006, 11:19 AM   #11
Quintopotere
Home Sweet Abandonia
 
Quintopotere's Avatar



 
Join Date: Apr 2005
Location: Turin, Italy
Posts: 1,043
Default

I don't understand why you want to elimate the prompt... C:\ is a symbol of the great DOS

Anyway, I'm very happy to see someone still "playing" with DOS k:
__________________
Quintopotere is offline                         Send a private message to Quintopotere
Reply With Quote
Old 04-11-2006, 03:37 PM   #12
Morrin
Underground
 
Morrin's Avatar

 
Join Date: Oct 2004
Location: Iisalmi, Finland
Posts: 416
Default

<div class='quotetop'>QUOTE(Quintopotere @ Nov 4 2006, 12:19 PM) [snapback]265304[/snapback]</div>
Quote:
I don't understand why you want to elimate the prompt... C:\ is a symbol of the great DOS

Anyway, I'm very happy to see someone still "playing" with DOS k:
[/b]
The point would be that I would create this menu where you can choose by typing you choosing like this:

--

1. Choose option 1
2. Choose option 2
3. Choose option 2
4. Cancel

Please type your command

--

It would be kind of fake menu.
Morrin is offline                         Send a private message to Morrin
Reply With Quote
Old 04-11-2006, 04:53 PM   #13
Japo
Autonomous human
 
Japo's Avatar


 
Join Date: Mar 2006
Location: ,
Posts: 4,613
Default

That's very possible with the "choose" command, followed by "if" with "errorlevel" etc. Check out DOS's HELP as I told you.
__________________
Life starts every day anew. Prospects not so good...
Japo is offline                         Send a private message to Japo
Reply With Quote
Old 04-11-2006, 11:57 PM   #14
JJXB
Pi-voh
 
JJXB's Avatar

 
Join Date: Oct 2004
Location: Godmanchester, England
Posts: 850
Default

isn't it choice?
check this example out:
Code:
:Menu
@cls
@echo ------------------------------------
@echo -**********************************-
@echo - Worms: United And Reinforcements -
@echo -**********************************-
@echo ------------------------------------
@echo ************************
@echo ****1. Run Worms
@Echo ****2. Multiplayer Menu
@Echo ****3. Exit
@echo ************************
@choice /c:321 /N Select Option:
@Cls
@if errorlevel 3 Goto game
@if errorlevel 2 goto mm
@if errorlevel 1 goto Quit
@Goto Quit

:game
@cls
@%cd%\bin\black.exe
@SET dos4g=quiet
@SET wormscfg=%cd%\worms.cfg
@SET wormscd=%cd%
@wait
@%cd%\bin\wrms

:mm
@cls
@echo ------------------------------------
@echo -**********************************-
@echo - Worms: United And Reinforcements -
@echo -******** Multiplayer Menu******** -
@echo -**********************************-
@echo ------------------------------------
@echo.
@echo 1. IPX equipped network
@echo 2. Serial Connection (Null Modem)
@echo 3. Modem Connection
@echo 4. Exit and play single-terminal Worms...
@echo 5. Quit
@echo.
@
@choice /c:54321 /N Select mode... 
@cls
if errorlevel 5 goto lan
if errorlevel 4 goto serial
if errorlevel 3 goto modem
if errorlevel 2 goto menu
if errorlevel 1 goto quit
@goto quit
pause
(taken from my re-write of the worms united and reinforcements batch file)
take what you can from it since it actually works pretty well on worms :P
__________________
~Ceramic White PSP Status~
FW: 5.00 M33-6
Memory Stick: 8gb
JJXB is offline                         Send a private message to JJXB
Reply With Quote
Old 05-11-2006, 05:09 AM   #15
Japo
Autonomous human
 
Japo's Avatar


 
Join Date: Mar 2006
Location: ,
Posts: 4,613
Default

<div class='quotetop'>QUOTE(JJXB @ Nov 5 2006, 01:57 AM) [snapback]265379[/snapback]</div>
Quote:
isn't it choice?[/b]
Oh well it's been so long I didn't remember right...
__________________
Life starts every day anew. Prospects not so good...
Japo is offline                         Send a private message to Japo
Reply With Quote
Old 08-11-2006, 08:48 AM   #16
Mighty Midget
Pox Vobiscum
 
Mighty Midget's Avatar


 
Join Date: Mar 2006
Location: Krakeroy, Norway
Posts: 3,014
Default

A menu? Well, I don't recall exactly, but if you create a rescue boot disc in win, it will come with a menu. Try to create one and look at the file. I did it to create a boot disc where I could choose EMS and CD-ROM enabled/disabled.
__________________
Je Suis Charlie
Mighty Midget is offline                         Send a private message to Mighty Midget
Reply With Quote
Old 09-11-2006, 07:44 AM   #17
Japo
Autonomous human
 
Japo's Avatar


 
Join Date: Mar 2006
Location: ,
Posts: 4,613
Default

There's a special syntax for multiple configurations in CONFIG.SYS, DOS's HELP.COM has explanations for this and also for the general case with CHOICE, IF, ERRORLEVEL, etc.
__________________
Life starts every day anew. Prospects not so good...
Japo is offline                         Send a private message to Japo
Reply With Quote
Old 09-11-2006, 04:10 PM   #18
Quintopotere
Home Sweet Abandonia
 
Quintopotere's Avatar



 
Join Date: Apr 2005
Location: Turin, Italy
Posts: 1,043
Default

<div class='quotetop'>QUOTE(Mighty Midget @ Nov 8 2006, 10:48 AM) [snapback]265851[/snapback]</div>
Quote:
I did it to create a boot disc where I could choose EMS and CD-ROM enabled/disabled.
[/b]
Oh, I remember the good old times when I was used to make the same things! :w00t:
It's really simple once you look an example or the help
__________________
Quintopotere is offline                         Send a private message to Quintopotere
Reply With Quote
Old 10-11-2006, 11:59 AM   #19
The Fifth Horseman
FUTURE SCIENCE BASTARD
 
The Fifth Horseman's Avatar


 
Join Date: Oct 2004
Location: Opole, Poland
Posts: 14,276
Default

Used to do something like that with Autoexec.bat and Config.sys on my old DOS machine... mainly because Flashback needed a huge amount of base memory.
__________________

"God. Can't you people see I'm trying to commit a crime against science and nature here?"
-- Reed Richards
The Fifth Horseman is offline                         Send a private message to The Fifth Horseman
Reply With Quote
Old 13-11-2006, 07:52 AM   #20
Icewolf
Il Lupone
 
Icewolf's Avatar

 
Join Date: Jan 2006
Location: Teufelsbruck, Germany
Posts: 1,338
Send a message via ICQ to Icewolf
Default

<div class='quotetop'>QUOTE(the_fifth_horseman @ Nov 10 2006, 01:59 PM) [snapback]266281[/snapback]</div>
Quote:
Used to do something like that with Autoexec.bat and Config.sys on my old DOS machine... mainly because Flashback needed a huge amount of base memory.
[/b]
I remember the times when games used to crash because the RAM had to be cleared with t3h 1337 memmaker.exe!!!! LOL
Then you could play again for another 90 minutes until the next crash!!! :ranting: LOL
__________________
Icewolf is offline                         Send a private message to Icewolf
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump
 


The current time is 11:10 PM (GMT)

 
Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.