I tried the system(dos_command), but it returns 0 if the command ran successful. So if I ping a machine using this command, it is always going to return 0 whether the machine "replied" or "request timed out".
Does anyone know how to check if a machine on the network is on or off in C++? (just like performing the DOS command: C:\>PING machineName)
Also, what is the most efficient way to find out if a file exists at a certain pathname?
Any help is greatly appreciated.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.