Poll and Restart FTP server

Diesel

Contributor
Joined
Aug 18, 2003
Anyone know of a tool or how to poll an ftp site on the local computer to see if it's down and restart it if it is?
 

PlausiblyDamp

Administrator
Joined
Sep 4, 2002
Location
Lancashire, UK
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();
 
Top Bottom