|hi, im tring to make a batch private IM using the msg command. the menu i designed around it works, execpt for a few parst...when you send the message, it jumps to the label :menu (which is several labels before). and if you answer with two or more words for the password or message it terminates. can some one help me solve this please?|
heres the script:
title Private IM - Name
echo please enter your initials.
set /p name=
title Private IM - Menu
echo welcome to private IM.
echo to start your session please type your password.
set /p input=
if not %input% == %answer% goto wrong
echo welcome %name%.
echo what user do you want to connect with?
set /p user=
echo session: %name% to %user% at %date% %time%
title Private IM - %name% to %user% at %date% %time%
echo type your message to %user%.
set /p msg=
if %msg% == leave exit
msg %user% /w %msg%
echo im sorry, that is the wrong password. try again later.
the main probelms are it won't accept two word answers and it skips to a random place unexpectedly.
to help solve i suggest copying the script into a new batch and editing from there. that how i do it. :)