Poll and Restart FTP server

Diesel

Well-known member
Joined
Aug 18, 2003
Messages
662
Anyone know of a tool or how to poll an ftp site on the local computer to see if its down and restart it if it is?
 
The service itself is named msftpsvc so you could always restart it similar to
C#:
            ServiceController sc = new ServiceController("msftpsvc");
           if (sc.Status == ServiceControllerStatus.Stopped )
            sc.Start();
 
Back
Top