Home » Questions » Computers [ Ask a new question ]

Batch File: Hide Ping test results

Batch File: Hide Ping test results

I'm making a batch file that tests a Computer name and sees if it responds.

Asked by: Guest | Views: 293
Total answers/comments: 1
Guest [Entry]

"redirect the output to nul:

ping -n 1 %computer_name% | find ""Reply"" > nul

this will still correctly set the %errorlevel% if the string was or was not found, but also hide the output."