Hi Experts,
I believe this is fairly simple, but need some guidance. I have a batch file that is calling a dialup connection. I would like to add to the batch file some error checking if the connection was successful or if it failed. If successful continue and if it fails display an error message and exit batch file. It is a very simple script. Below is all I am doing now.
Current Batch File
rasdial "MyDialupConnection"
Start MyApp
ECHO Waiting for my app to launch
Sleep 5
What I would like to have:
@ECHO OFF
RASDIAL "MyDialUpConnection" --Display my on own message
IF "MyDialUpConnection" was successful Then
Start MyApp
ECHO Waiting for my app to launch
Sleep 5
If "MyDialUpConnection" fails then
ECHO Connection was not successful. Please make sure ...
EXIT Batch File
Can you guys help me out?
Start Free Trial