1.

Solve : Running another batch job inside an already executed window?

Answer»

Hi guys,

I am creating a game in DOS, and i'd like to SPLIT the game files up for easier editting, is there any chance I am ABLE to execute another batch job WITHIN one i am already running?

Example:
ECHO Welcome to game
echo Press 1 for Warrior class
echo Press 2 for Mage class
choice /c 12 /n
if ERRORLEVEL 1 goto Warrior
if ERRORLEVEL 2 goto Mage
:Warrior
Run Warrior.bat

Then the Warrior.bat would start up but in the same window for the user, is this possible?

Or any other suggestions are greatly appreciated, thanksYou WANT the call keyword.

Type help call at a cmd prompt.
Oh that's fantastic! I knew it'd be easy! Haha, thank you sir



Discussion

No Comment Found