Discussion Locked

ping looping

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

G'Day Folks,

In a cmd prompt in Win2K, entering:
ping 192.168.100.2
will see the the command repeating itself and making the screen continuously scroll, with no output.

However, I have a shortcut pointing to:
%windir%\System32\cmd.exe /k c:\ping.bat
which contains:
ping 192.168.100.2

How do I get a normal cmd window to run a command once only?

3 replies

by timthetoolman

Hi,

Put the full path to the ping command into the bat file... eg...

e:\windows\system32\ping 192.168.0.1
pause

Make this, the bat file and it will work.

Cheers,
Tim.

by steve.doig

Thanks Tim
If you don't mind, I have a question "Two PC N/W not talking" in Network Q/A

Cheers,

Steve

This discussion is closed to new replies.