Asked 9 years, 9 months ago. Active 6 years, 10 months ago. Viewed 18k times. From a Windows 7 machine, I ping an IP address of a turned-off machine. Improve this question. Der Hochstapler 83k 57 57 gold badges silver badges bronze badges. Doron Doron 1 1 gold badge 2 2 silver badges 4 4 bronze badges. Add a comment. Active Oldest Votes. Improve this answer. Can anyone confirm that this is valid for all use cases? I tested setting the -w switch to against a valid and invalid IP adding the -n 1 switch as well.
It seems to work. Bob Bob If the response is "Ping request could not find host madeup Please check the name and try again" this does not work, because it is looking for "host unreachable", so your result is "madeup04 is responding" which is wrong. It's easy to join and it's free. Register now while it's still free!
Already a member? Close this window and log in. Join Us Close. Join Tek-Tips Forums! Join Us! Alex K. I saw something about using "TTL" on another post, but wanted to avoid it because someone said it can return a false positive. RolfBly RolfBly 2, 4 4 gold badges 28 28 silver badges 39 39 bronze badges. Jon Jon k 74 74 gold badges silver badges bronze badges. Thanks for your help! It may not works. Toni Lazazzera Toni Lazazzera 21 1 1 bronze badge.
Martin Binder Martin Binder 1, 6 6 silver badges 4 4 bronze badges. Brian Brian 11 4 4 bronze badges. Chandan Chandan 19 1 1 bronze badge. Please provide more information when you give an answer. See How to Answer — David Glickman. Very neat method, I've seen a lot of batch but have never seen that.
However, I'd modify it to be more like 'ping Kudos — jacktrader. Justin Duijn Justin Duijn 1. Success is 0, failure is 1. Please check the name and try again. Pink Mr. Pink 9 1 1 bronze badge. Any info would be appreciated. Thursday, May 6, PM. Hi, Can you post the detail information about the batch file and the workaround here for research? Thanks, Novak. Friday, May 7, AM. Well I found a work around for the batch file, but was still curious if I was just looking at this all wrong or if anyone else was having the same issues.
I'd be interested in your workaround by the way :. Friday, January 14, AM. Saturday, October 22, PM.
0コメント