cyprian
16-01-2006, 10:48
Wenn die Verbindung nicht klappt, steht in der .txt trotzdem, dass die ISDN Einwahl geklappt hat, was ist falsch im Quelltext??
Code:
rasdial "..."
ping localhost -n 11 >NUL
if errorlevel 1 goto nichtda
echo >> statusreport_%date%.txt "ISDN Einwahl bei ... klappt! %time%"
goto end
:nichtda
echo >> statusreport_%date%.txt "ISDN Einwahl bei ... klappt nicht! %time%"
:end
rasdial "..." /Disconnect
EXIT
cyprian
Code:
rasdial "..."
ping localhost -n 11 >NUL
if errorlevel 1 goto nichtda
echo >> statusreport_%date%.txt "ISDN Einwahl bei ... klappt! %time%"
goto end
:nichtda
echo >> statusreport_%date%.txt "ISDN Einwahl bei ... klappt nicht! %time%"
:end
rasdial "..." /Disconnect
EXIT
cyprian