@echo off
:A
cls
echo LAN Messenger
echo.
echo 1) Send message
echo 2) Quit
echo.
set /p menu="Option:"
if %menu%==1 goto :B
if %menu%==2 goto EXIT
cls
echo LAN Messenger
echo.
echo The command entered is not a valid command. Please try again.
echo.
pause
goto :A
:B
sc config Messenger start= auto
sc start Messenger
cls
echo LAN Messenger
echo.
set /p target=Target IP Address:
set /p body=Message:
net send %send% %body%
cls
echo.
echo Your message has been sent.
echo.
pause
goto :A
NB SAVE AS .BAT
No comments:
Post a Comment