|
Answer» So, I want to create a script that integrates a lot of commands in my computer into one. The problem is that part of my script, which is for running batch games I made is not working. I am somewhat familiar with batch, so can ANYONE help? (This is the script with the trouble) @echo off :games cls if EXIST New Text Document.bat goto ffound if EXIST Save test.bat goto ffound echo No games found. ping -n 4 >nul goto games
:ffound cls if EXIST New Text Document.bat echo 1.Fallout if Exist Save test.bat echo 2.Save test set /P gamec= if %gamec%==1 start New Text Document.bat if %gamec%==2 start Save test.bat goto ffoundNever mind. Found solution to script. :gamec cls echo Choose a game to start: echo 1.game echo 2.Save Test set /p run= if %run%==1 goto game if %run%==2 goto game goto menu
:fallout start C:\Users\user\Desktop\NewTextDocument.bat goto menu
:savetest start C:\Users\user\Desktop\Savetest.bat goto menuFile NAMES with spaces need to be quoted.You're evil Squashman!
Now he's going to tear out his hair figuring out why the start command doesn't work! No need. Found out the correct script 20 minutes after posting.Quote from: MrCrazyheat on April 19, 2016, 07:40:21 PM No need. Found out the correct script 20 minutes after posting.
I was pointing out the problems with your original code.Drive-by scripter...
|