i need help with my batch

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
bvant6
Posts: 1
Joined: 29 Apr 2011 18:01

i need help with my batch

#1 Post by bvant6 » 29 Apr 2011 18:09

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

Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Re: i need help with my batch

#2 Post by Ed Dyreen » 16 May 2011 11:48

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.

Post Reply