Keep window open - 17/02/04 09:42 PM
I am writing an alias to ICMP ping machines using the ping command from the windows command line (winXP).
But this closes the command line window, after the ping command finishes. Does anyone have any idea how to keep the window alive?
Thanks in advance.
Code:
iping { if (!$1) { echo -a Syntax: /iping <nick|ip|hostname> | halt } if (. isin $1) { run C:\WINDOWS\system32\ping.exe $1 } else { var %x = $address($1,5) if (%x == $null) { echo -a Nickname not in IAL, IAL not enabled, or IAL not filled up. Can't find user's IP or hostname. | halt } else { %x = $gettok(%x,2,64) | run C:\WINDOWS\system32\ping.exe %x } } }
But this closes the command line window, after the ping command finishes. Does anyone have any idea how to keep the window alive?
Thanks in advance.