Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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

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 3CHOICE /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

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

This is what I have in VBS:
Dim startvalve
Dim WshShellSet 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", , TRUEBut if you want to change any text it takes allot of time to rearange the text.

![]() |
PABX Programming
|
Problem when trying to cr...
|

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