Link to home
Start Free TrialLog in
Avatar of clebo99
clebo99

asked on

Supressing VBScript Message Box Error Messages

Ok,

I'm running a VBScript that connects to an outside contractors SFTP server to download some files.  Thee script basically is:

Connect
If Connection is successful then
download files
If Not
Stop
End

The script generally works but if the server is actually "down", a message box comes up.  The problem is that we are automating this script via a Scheduled Task and the job "hangs" when this message comes up.

Is there a simple way to supress any/all message boxes that come up?  Like an "on error false" or something?
SOLUTION
Avatar of David Robitaille
David Robitaille
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Avatar of RobSampson
RobSampson
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial