Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

run windows scheduled program only if online

Status
Not open for further replies.

tbalazs

IS-IT--Management
Dec 18, 2000
158
GB
I have an ftp download I want to schedule using Windows 2000 Scheduler but obviously I only want it to run if our net connection is up, otherwise it's ok if it's just skipped. Is there an easy way to program this in Windows?
Tony.
 
One of the easiest ways I can think of is, make a batchfile. In the batchfile, first ping the ftp server, redirecting the ping output to a file, and examine the file.
An other easy way is, the ftp program just fails if it can not get a connection.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top