jamesradley21 Posted October 26, 2015 Posted October 26, 2015 Hi All. I need a script that can ping a website/server and when it dosen't ping back can start a file.
snagrat Posted October 26, 2015 Posted October 26, 2015 Very basic but you could have a file on the remote machine then do: If Not Exist \\remotemachine\share\file c:\startfile.exe If the remote machine is offline then the file will not exist and so will run the startfile.exe
jamesradley21 Posted October 26, 2015 Author Posted October 26, 2015 A .bat which will start backup servers Sorry, dont understand..............what file?! - - - Updated - - - Thanks but it is at a different location Very basic but you could have a file on the remote machine then do: If Not Exist \\remotemachine\share\file c:\startfile.exe If the remote machine is offline then the file will not exist and so will run the startfile.exe
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now