0
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?
I am looking for batch file, not powershell. – tech_enthusiast – 2018-04-03T07:00:49.387
Both of batch and ps1 are Windows native, can you specify your environment? – DIDIx13 – 2018-04-03T08:18:25.150
I need to use batch. – tech_enthusiast – 2018-04-03T08:51:18.337
Thank you for editing the answer, but I do not ask for code. I am asking where can I find the possible errors for such windows commands? Let it be with powershell's Test-Connection or Batch's Ping. – tech_enthusiast – 2018-04-04T04:14:54.340
@tech_enthusiast It should be store in errorlevel or %ERRORLEVEL% if he can't find errorlevel about %ERRORLEVEL%
– DIDIx13 – 2018-04-04T06:11:17.387