if "%1"=="" goto usage :gettemp set TMPFILE=%TMP%\%RANDOM%.tmp if exist "%TMPFILE%" GOTO :gettemp echo 172.16.20.222>%TMPFILE% echo WAIT "Login">>%TMPFILE% echo SEND "r00t\m">>%TMPFILE% echo WAIT "Password:">>%TMPFILE% echo SEND "P@$$w0rd\m">>%TMPFILE% echo WAIT ">">>%TMPFILE% echo SEND "enable\m">>%TMPFILE% echo WAIT "#">>%TMPFILE% echo SEND "mobile 0 0 sms message send %1 %2 %3 %4 %5 %6 %7 %8 %9\m">>%TMPFILE% echo WAIT "#">>%TMPFILE% echo SEND "exit\m">>%TMPFILE% echo WAIT ">">>%TMPFILE% echo SEND "exit\m">>%TMPFILE% tst10.exe /r:%TMPFILE% /o:out del %TMPFILE% exit :usage echo Usage:%0 Phone_num Message