Computing.Net > Forums > Programming > menu for list of batch files

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

menu for list of batch files

Reply to Message Icon

Name: ocapity
Date: May 28, 2002 at 09:27:16 Pacific
Comment:

Hi,
Problem:
I want to have a litle program/batchfile to run my other batch files with a easy/stupid interface.
something like this:

1. start batch file 1
2. start batch file 2
3. start batch file 3

______ |start button/pressing enter|


Thanks
Ocapity



Sponsored Link
Ads by Google

Response Number 1
Name: cup
Date: May 28, 2002 at 09:56:21 Pacific
Reply:

Which operating system are you running on? The batch script varies from system to system.


0

Response Number 2
Name: MacFromOK
Date: May 28, 2002 at 10:20:19 Pacific
Reply:

Here's one that should keep running
until you "quit" it. If you only want
it to run one program and then exit,
don't use CALL. You must have
CHOICE.COM for this to work. You can
download it here if your version of
Windows doesn't have it:

http://www.geko.ch/batch/CHOICE.COM

This could be optimized more, but I
tried to make it easy to understand.
You must use your own batch file names.

@ECHO OFF
:START
CLS
echo.
echo.
echo Press a key (Q to quit):
echo.
echo (1) Batchfile 1
echo (2) Batchfile 2
echo (3) Batchfile 3

CHOICE /c:123q /n
if errorlevel 4 goto END
if errorlevel 3 goto B3
if errorlevel 2 goto B2
goto B1

:B1
CALL B1.bat
goto START

:B2
CALL B2.bat
goto START

:B3
CALL B3.bat
goto START

:END
CLS


0

Response Number 3
Name: ocapity
Date: May 28, 2002 at 11:03:27 Pacific
Reply:

Systems are XP, 2000 and NT4. We are gamers and not all are computer wizards. A co-worker makes batchfiles to start our game, it is just for the "nono's" to start there game like it should (with the right commando's).

I tryed in Visual Studio but did not find a commando to run external programs/batch. In VBS I can't do a propper menu structure.
I know I ain't a script wizard my self but I like to lurn.

thanks anyways
Ocapity


0

Response Number 4
Name: ocapity
Date: May 28, 2002 at 11:11:18 Pacific
Reply:

This is what I have in VBS:
Dim startvalve
Dim WshShell

Set WShShell = WScript.CreateObject("WScript.Shell")

startvalve = InputBox ("Type the number of the gametype you wan to start 1: Valve standalone. 2: Valve DS 3: CS bots 4: CS DS", "-=CGS=-")


WShshell.run startvalve & ".bat", , TRUE

But if you want to change any text it takes allot of time to rearange the text.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


PABX Programming Problem when trying to cr...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: menu for list of batch files

Batch file to extract certain lines www.computing.net/answers/programming/batch-file-to-extract-certain-lines/17465.html

batch file for file copying www.computing.net/answers/programming/batch-file-for-file-copying/13881.html

Help for create a batch file www.computing.net/answers/programming/help-for-create-a-batch-file/15796.html