Page 1 of 1
Batch File
Posted: Tue Jan 31, 2006 2:28 am
by Kills On Site
Well for school I need to create a DOS batch file that will promt for a choice of games and have a box made of asteriks surrounding the choices. The games are located on C:\GAMES\<game folder>\<game exe file>. The choices will start with 3 games and build up to about 12. Anyone able to help me with this?
Posted: Tue Jan 31, 2006 2:31 am
by +JuggerNaut+
Posted: Tue Jan 31, 2006 2:49 am
by AmIdYfReAk
do you NEED to do it in a dos/bat file? i mean XML/C/C+/VB would be actually be way more simple.
Posted: Tue Jan 31, 2006 3:38 am
by Kills On Site
Well it needs to be done in DOS bat commands.
Posted: Tue Jan 31, 2006 5:20 am
by SOAPboy
Uh.. its pretty simple.. just google dos commands, you can pretty much figure it out yourself..
hint, Txt files are handy in this..

Posted: Tue Jan 31, 2006 5:27 am
by Scourge
Follow Juggz' link.
Posted: Tue Jan 31, 2006 6:51 am
by CheapAlert
i used to have a bat menu maker somewhere from 87
Posted: Tue Jan 31, 2006 10:08 pm
by Kills On Site
Well here is what I have so far.
@echo off
:Begin
cls
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo.
echo. *******************
echo. * A - Donkey Kong *
echo. * B - Mario *
echo. *******************
echo.
echo.
echo.
CHOICE /n /C:12 Pick a Game
If errorlevel ==2 goto 2Mario
If errorlevel ==1 goto 1Kong
goto end
:2Mario
C:\GAMES\MARIOBRO\Mario.exe
cls
goto end
:1Kong
C:\GAMES\DONKEYKO\ckong.exe
cls
goto end
:end
cls
the many echos are to get the menu choice in the center of the screen. There are also many spaces, but the forum doesn't show them. The only thing is we must make it so that when you exit the game the menu must reappear, which isn't that hard to do, but we need to enter in as an option, exit to DOS, how does one do that. I tried using an :away for an option, but it just exits no matter what you choose.