G

Guest

Guest
Archived from groups: microsoft.public.windowsxp.general (More info?)

What's the difference between "@find" and "ping"?
I try both of it, it's working fine, I didn't see any difference.


Peter CCH
 

phlip

Distinguished
May 7, 2004
36
0
18,530
Archived from groups: microsoft.public.windowsxp.general (More info?)

"find" looks for a word in a file, "ping" checks to see if a computer is
online and measures latency. What are they supposed to have in common?

Though, based on your subject line I guess it is a typo and you're curious
about the difference between "@ping" and "ping". The answer is: no difference
if you type on the command line directly, but if you put it in a batch file
the one without the @ will cause the command to be echoed to the console
before it is run, whereas the one with the @ will run without the command
being printed.

You can turn the echoing on and off for more than one line with "echo on"
and "echo off" - you will often see batch files with "@echo off" at the top -
turns off echo and doesn't ecen show the "echo off" command.

=====
Phlip

Christmas comes but once per 31.6887nHz cycle

"Peter CCH" wrote:

> What's the difference between "@find" and "ping"?
> I try both of it, it's working fine, I didn't see any difference.
>
>
> Peter CCH
>
>
 
G

Guest

Guest
Archived from groups: microsoft.public.windowsxp.general (More info?)

Peter CCH wrote:

> What's the difference between "@find" and "ping"?
> I try both of it, it's working fine, I didn't see any difference.
>
>
> Peter CCH
>
Hi,

You will see the difference only in a batch file, @ means "echo off"
for this command line.


Using @ping.exe in a batch file will give you this output:

--------------------8<----------------------
Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
[-r count] [-s count] [[-j host-list] | [-k host-list]]
[-w timeout] target_name
--------------------8<----------------------


Using ping.exe in a batch file will give you this output:
--------------------8<----------------------
D:\>ping.exe

Usage: ping [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]
[-r count] [-s count] [[-j host-list] | [-k host-list]]
[-w timeout] target_name
--------------------8<----------------------



--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scriptcenter/default.mspx
 
G

Guest

Guest
Archived from groups: microsoft.public.windowsxp.general (More info?)

@ suppresses the line from appearing on screen.

--
--------------------------------------------------------------------------------------------------
http://webdiary.smh.com.au/archives/_comment/001075.html
=================================================
"Peter CCH" <petercch.wodoy@gmail.com> wrote in message news:1126515293.815036.240990@g47g2000cwa.googlegroups.com...
> What's the difference between "@find" and "ping"?
> I try both of it, it's working fine, I didn't see any difference.
>
>
> Peter CCH
>