Ghost21 0 Posted September 16, 2011 In one of my scripts I have $var = Ping($device, 500) msgbox(0,"PING",$var & " ms") and no matter what device I ping it gives me " 0 " even though if I ping it through dos it responds.. If I make a new script and just add $var = Ping($device, 500) msgbox(0,"PING",$var & " ms") and the device name it shows me the right response.. What would be stopping this from responding correct.. Share this post Link to post Share on other sites
JohnOne 1,603 Posted September 16, 2011 Sounds as though your variable might be being modified by something else in your code. Without seeing it, it virtually impossible to give any other answer, apart from try making $device a constant. AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Share this post Link to post Share on other sites
MrMitchell 16 Posted September 16, 2011 Just be sure $device is a correct server name or address... include the device name in the MsgBox Share this post Link to post Share on other sites