Link to home
Start Free TrialLog in
Avatar of emconsulting
emconsulting

asked on

Script or command to ping active nic gateway

I have an application that displays a system tray icon that can reference a command or a script for troubleshooting steps for end users. Pinging the default gateway is a step I would like to add without customizing each application installation for each clients network. Any ideas?
ASKER CERTIFIED SOLUTION
Avatar of Qlemo
Qlemo
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of emconsulting
emconsulting

ASKER

Thank you. I need the results do display to the user. What would I add to the code? I also saved this as a .bat file, is that correct?
.bat or .cmd does not matter, though I prefer latter.
You probably just need the script to pause until a key is pressed to allow for viewing the result. Replace the exit /b with pause.