echo off
set /A num = 0
:begin
tskill dbremote /A
rasdial ConName UserName Password
if errorlevel==1 goto try_again
ping 192.168.0.204 -n 3 -l 32 | find "Reply from" /I || goto try_again
dbremote.exe -v -t -k -x -dl -l 50k -c "DSN=ODBC_NAME" -o "d:\dbremote.Log" -os 4m
goto end
:end
RasDial /d
echo on
exit
:try_again
set /A num=num +1
if %num% GEQ 3 goto end
RasDial /d
echo Please wait a moment…..,don't close the window!System will retry three times.
ping 192.168.100.10 -n 30 -l 10 | find "Request" /C
cls
goto begin
阅读(1349) | 评论(0) | 转发(0) |