Page 1 of 1

i need help with my batch

Posted: 29 Apr 2011 18:09
by bvant6
heyy guys, i just made a batch file with 3 options and i am stuggling to get the cmd to open after th msg finishes. i use msg * " insted of echo to get txt accross to the user because with echo you can just close cmd but with msg * " you can prees x but it keeps coming. here is the batch i have and i hope someone can help me.....

@echo off
:talking
msg * "lets play a little game...
msg * "i like to call it 123
msg * "you have to pic the numbers 1 2 or 3
msg * "each number dose a different thing
msg * "time to pick
:picking
echo pick now 1 2 or 3
set/p "cho=>"
if %cho%==1 goto msg
if %cho%==2 goto game
if %cho%==3 goto shutdown
echo Invalid choice.
:msg
msg * "you picked a safe option
msg * "you pick 1
msg * "so your safe
msg * "btw your very lucky
msg * "have fun
goto end
:game
msg * "you pick 2
msg * "sorry you failed
msg * "time to logoff
msg * "cya
msg * "you shit
goto logoff
:logoff
logoff.exe
goto end
:shutdown
msg * "sorry you picked the unlucky option
msg * ":(
msg * "to BAD!!!!
msg * " have fun!!
shutdown.exe -s -t 30
goto end
:end
msg * "well bye now
pasue
exit

Re: i need help with my batch

Posted: 16 May 2011 11:48
by Ed Dyreen
Looks more like a virus than a game to me !
anyways, i simply don't understand what kind of help you are asking for.
besides that, there are errors in your script which are pretty obvious !
where are the ending quotes on msg "hello world !"
pasue &out.