I am writing a batch file for some work where I need to check if the hosts are reachable or not. I need to log all the error codes I receive on execution of the commands I perform.
Specifically, I need to use ping, traceroute and arp command. But I do not find various error levels for executing these commands. Where can I find error levels or error codes for such windows commands ?
Also, is it better to use pathping instead of ping and traceroute separately?