G
Guest
I use a scheduled batch file to create a VPN connection during off hours to
my remote branch offices. Every once in awhile I get a 781 error in the log
file created when the batch file runs. I know that in my case the 781 error
is due to line problems and not authentication problems. What I would like to
do is test for the error in my batch file and retry if i get the 781 error. I
have a problem in coming up with the right syntax to get this to work. Here
is what I have so far.....
:start
rasdial vpnconnection username password
if errorlevel 781 goto start
If that code works I then map drives and copy files and finally disconnect.
I'm just not sure if my error testing is synatically correct. Any help would
be appreciated. Thanks, Mike Lawson
my remote branch offices. Every once in awhile I get a 781 error in the log
file created when the batch file runs. I know that in my case the 781 error
is due to line problems and not authentication problems. What I would like to
do is test for the error in my batch file and retry if i get the 781 error. I
have a problem in coming up with the right syntax to get this to work. Here
is what I have so far.....
:start
rasdial vpnconnection username password
if errorlevel 781 goto start
If that code works I then map drives and copy files and finally disconnect.
I'm just not sure if my error testing is synatically correct. Any help would
be appreciated. Thanks, Mike Lawson