Technology Questions

Go Back   Technology Questions > Software Questions > Operating System Questions > Windows XP

Windows XP Discuss the Microsoft Windows XP Operating System

Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old 05-26-2007, 07:00 AM
Mike
Newsgroup Contributor
 
Posts: n/a
no output for ping command

When I run "ping" command in DOS windows, there is no output and it
returns immediately to command prompt.

What might goes wrong ?

Thanks ahead.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

 
Old 05-26-2007, 07:00 AM
  #2 (permalink)  
Old 05-26-2007, 07:30 AM
Malke
Newsgroup Contributor
 
Posts: n/a
Re: no output for ping command

Mike wrote:
> When I run "ping" command in DOS windows, there is no output and it
> returns immediately to command prompt.
>
> What might goes wrong ?
>
> Thanks ahead.
>


What site are you pinging? Example:

ping www.yahoo.com


Malke
--
Elephant Boy Computers
www.elephantboycomputers.com
"Don't Panic!"
MS-MVP Windows - Shell/User
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 05-26-2007, 10:00 AM
Wesley Vogel
Newsgroup Contributor
 
Posts: n/a
Re: no output for ping command

What happens with these commands?

ping www.google.com
ping.exe www.google.com
%windir%\system32\ping www.google.com
%windir%\system32\ping.exe www.yahoo.com
%systemroot%\system32\ping www.google.com
%systemroot%\system32\ping.exe www.yahoo.com

Anything work?
Any error messages?

Why don't my commands work?
http://internet.cybermesa.com/~bstew...dprompt.html#6

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In news:1180187510.030854.33530@p77g2000hsh.googlegro ups.com,
Mike <gongweigang******.com> hunted and pecked:
> When I run "ping" command in DOS windows, there is no output and it
> returns immediately to command prompt.
>
> What might goes wrong ?
>
> Thanks ahead.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 05-26-2007, 02:00 PM
Jim
Newsgroup Contributor
 
Posts: n/a
Re: no output for ping command


"Mike" <gongweigang******.com> wrote in message
news:1180187510.030854.33530@p77g2000hsh.googlegro ups.com...
> When I run "ping" command in DOS windows, there is no output and it
> returns immediately to command prompt.
>
> What might goes wrong ?
>
> Thanks ahead.
>

Invoke ping this way:

Start /Run /Cmd Ping

What you did was

Start /Run Ping

Which displays as you stated.

Jim


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5 (permalink)  
Old 05-26-2007, 07:50 PM
Mike
Newsgroup Contributor
 
Posts: n/a
Re: no output for ping command

On May 26, 10:27 am, Malke <notrea...@invalid.invalid> wrote:
> Mike wrote:
> > When I run "ping" command in DOS windows, there is no output and it
> > returns immediately to command prompt.

>
> > What might goes wrong ?

>
> > Thanks ahead.

>
> What site are you pinging? Example:
>
> pingwww.yahoo.com
>
> Malke
> --
> Elephant Boy Computerswww.elephantboycomputers.com
> "Don't Panic!"
> MS-MVP Windows - Shell/User


Here is what I did and the output:

################################################## ##

C:\Documents and Settings>ping www.yahoo.com

C:\Documents and Settings>ping www.google.com

C:\Documents and Settings>ping.exe www.google.com

C:\Documents and Settings>%windir%\system32\ping www.google.com

C:\Documents and Settings>%windir%\system32\ping.exe www.google.com

C:\Documents and Settings>%systemroot%\system32\ping www.google.com

C:\Documents and Settings>%systemroot%\system32\ping.exe www.google.com

C:\Documents and Settings>

################################################## ##

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #6 (permalink)  
Old 05-26-2007, 08:00 PM
Mike
Newsgroup Contributor
 
Posts: n/a
Re: no output for ping command

On May 26, 12:54 pm, "Wesley Vogel" <123WVogel...@comcast.net> wrote:
> What happens with these commands?
>
> pingwww.google.com
> ping.exewww.google.com
> %windir%\system32\pingwww.google.com
> %windir%\system32\ping.exewww.yahoo.com
> %systemroot%\system32\pingwww.google.com
> %systemroot%\system32\ping.exewww.yahoo.com
>
> Anything work?
> Any error messages?
>
> Why don't my commands work?http://internet.cybermesa.com/~bstew...dprompt.html#6
>
> --
> Hope this helps. Let us know.
>
> Wes
> MS-MVP Windows Shell/User
>
> Innews:1180187510.030854.33530@p77g2000hsh.googleg roups.com,
> Mike <gongweig...******.com> hunted and pecked:
>
>
>
> > When I run "ping" command in DOS windows, there is no output and it
> > returns immediately to command prompt.

>
> > What might goes wrong ?

>
> > Thanks ahead.- Hide quoted text -

>
> - Show quoted text -


Here is what did:

#####################################
C:\Documents and Settings>ping www.yahoo.com

C:\Documents and Settings>ping www.google.com

C:\Documents and Settings>ping.exe www.google.com

C:\Documents and Settings>%windir%\system32\ping www.google.com

C:\Documents and Settings>%windir%\system32\ping.exe www.google.com

C:\Documents and Settings>%systemroot%\system32\ping www.google.com

C:\Documents and Settings>%systemroot%\system32\ping.exe www.google.com

C:\Documents and Settings>
##########################################

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #7 (permalink)  
Old 05-26-2007, 08:00 PM
Mike
Newsgroup Contributor
 
Posts: n/a
Re: no output for ping command

On May 26, 4:50 pm, "Jim" <j...@nospam.com> wrote:
> "Mike" <gongweig...******.com> wrote in message
>
> news:1180187510.030854.33530@p77g2000hsh.googlegro ups.com...> When I run "ping" command in DOS windows, there is no output and it
> > returns immediately to command prompt.

>
> > What might goes wrong ?

>
> > Thanks ahead.

>
> Invoke ping this way:
>
> Start /Run /Cmd Ping
>
> What you did was
>
> Start /Run Ping
>
> Which displays as you stated.
>
> Jim


Actually, I used Start/Run/Cmd Ping to invoke "ping" command.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #8 (permalink)  
Old 05-27-2007, 08:50 AM
Wesley Vogel
Newsgroup Contributor
 
Posts: n/a
Re: no output for ping command

See if one of these commands works.

ping /?
Should show ping Help.

%systemroot%\system32\dllcache\ping.exe www.yahoo.com

%systemroot%\ServicePackFiles\i386\ping.exe www.yahoo.com

If you had a ping.com, you'd get an error message when using ping with no
extension or path.

If the path was messed up, you'd get a "is not recognized" message.

Sounds like ping.exe might be messed up. If it works with the dllcache or
i386 path then WFP can fix it.

ping.exe normally exists in
C:\WINDOWS\system32
and
C:\WINDOWS\system32\dllcache
or
C:\WINDOWS\ServicePackFiles\I386

The ping.exe in C:\WINDOWS\system32 is the one that gets used. The other
one is for backup. If Windows File Protection is working correctly, the
following should help.

Try this.

Start | Run | Type: system32 | Click OK |

Size the window so you can also see your Desktop.
Scroll down to ping.exe.
Left click and drag ping.exe to your Desktop.
Wait just a minute.
Now scroll down clear to the bottom of system32.
Is there a new ping.exe there?

If there is a new ping.exe delete the one on your Desktop.
Close system32.

If there is NOT a new ping.exe drag the one on your Desktop back into
system32.
Close system32.

If there is a new ping.exe in system32, you'll see something similar to
this in the Event Viewer under System, listed as Information; Windows File
Protection:

Event Type: Information
Event Source: Windows File Protection
Event Category: None
Event ID: 64002
Date: 27-May-07
Time: 9:25:49 AM
User: N/A
Computer: GT5404
Description:
File replacement was attempted on the protected system file
c:\windows\system32\ping.exe. This file was restored to the original version
to maintain system stability. The file version of the system file is
5.1.2600.2180.

If that doesn't help expand a copy of ping.exe from the XP CD.

Ping.exe is on your XP CD listed as PING.EX_ in the I386 folder. The
underscore (_) means that the file is compressed. The compressed file needs
to be expanded to be of any use. To expand it to the proper location...

Insert your XP CD into your CD drive and enter (Copy and Paste) the
following command into the Start | Run box:

expand D:\I386\PING.EX_ c:\windows\system32\ping.exe

Hit your ENTER key or click OK.

NOTE :
Change D to your CD drive letter if different.

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In news:1180234188.149814.295690@w5g2000hsg.googlegro ups.com,
Mike <gongweigang******.com> hunted and pecked:
> On May 26, 12:54 pm, "Wesley Vogel" <123WVogel...@comcast.net> wrote:
>> What happens with these commands?
>>
>> pingwww.google.com
>> ping.exewww.google.com
>> %windir%\system32\pingwww.google.com
>> %windir%\system32\ping.exewww.yahoo.com
>> %systemroot%\system32\pingwww.google.com
>> %systemroot%\system32\ping.exewww.yahoo.com
>>
>> Anything work?
>> Any error messages?
>>
>> Why don't my commands
>> work?http://internet.cybermesa.com/~bstew...dprompt.html#6
>>
>> --
>> Hope this helps. Let us know.
>>
>> Wes
>> MS-MVP Windows Shell/User
>>
>> Innews:1180187510.030854.33530@p77g2000hsh.googleg roups.com,
>> Mike <gongweig...******.com> hunted and pecked:
>>
>>
>>
>>> When I run "ping" command in DOS windows, there is no output and it
>>> returns immediately to command prompt.

>>
>>> What might goes wrong ?

>>
>>> Thanks ahead.- Hide quoted text -

>>
>> - Show quoted text -

>
> Here is what did:
>
> #####################################
> C:\Documents and Settings>ping www.yahoo.com
>
> C:\Documents and Settings>ping www.google.com
>
> C:\Documents and Settings>ping.exe www.google.com
>
> C:\Documents and Settings>%windir%\system32\ping www.google.com
>
> C:\Documents and Settings>%windir%\system32\ping.exe www.google.com
>
> C:\Documents and Settings>%systemroot%\system32\ping www.google.com
>
> C:\Documents and Settings>%systemroot%\system32\ping.exe www.google.com
>
> C:\Documents and Settings>
> ##########################################


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #9 (permalink)  
Old 05-27-2007, 03:30 PM
Mike
Newsgroup Contributor
 
Posts: n/a
Re: no output for ping command

On May 27, 11:41 am, "Wesley Vogel" <123WVogel...@comcast.net> wrote:
> See if one of these commands works.
>
> ping /?
> Should show ping Help.
>
> %systemroot%\system32\dllcache\ping.exewww.yahoo.c om
>
> %systemroot%\ServicePackFiles\i386\ping.exewww.yah oo.com
>
> If you had a ping.com, you'd get an error message when using ping with no
> extension or path.
>
> If the path was messed up, you'd get a "is not recognized" message.
>
> Sounds like ping.exe might be messed up. If it works with the dllcache or
> i386 path then WFP can fix it.
>
> ping.exe normally exists in
> C:\WINDOWS\system32
> and
> C:\WINDOWS\system32\dllcache
> or
> C:\WINDOWS\ServicePackFiles\I386
>
> The ping.exe in C:\WINDOWS\system32 is the one that gets used. The other
> one is for backup. If Windows File Protection is working correctly, the
> following should help.
>
> Try this.
>
> Start | Run | Type: system32 | Click OK |
>
> Size the window so you can also see your Desktop.
> Scroll down to ping.exe.
> Left click and drag ping.exe to your Desktop.
> Wait just a minute.
> Now scroll down clear to the bottom of system32.
> Is there a new ping.exe there?
>
> If there is a new ping.exe delete the one on your Desktop.
> Close system32.
>
> If there is NOT a new ping.exe drag the one on your Desktop back into
> system32.
> Close system32.
>
> If there is a new ping.exe in system32, you'll see something similar to
> this in the Event Viewer under System, listed as Information; Windows File
> Protection:
>
> Event Type: Information
> Event Source: Windows File Protection
> Event Category: None
> Event ID: 64002
> Date: 27-May-07
> Time: 9:25:49 AM
> User: N/A
> Computer: GT5404
> Description:
> File replacement was attempted on the protected system file
> c:\windows\system32\ping.exe. This file was restored to the original version
> to maintain system stability. The file version of the system file is
> 5.1.2600.2180.
>
> If that doesn't help expand a copy of ping.exe from the XP CD.
>
> Ping.exe is on your XP CD listed as PING.EX_ in the I386 folder. The
> underscore (_) means that the file is compressed. The compressed file needs
> to be expanded to be of any use. To expand it to the proper location...
>
> Insert your XP CD into your CD drive and enter (Copy and Paste) the
> following command into the Start | Run box:
>
> expand D:\I386\PING.EX_ c:\windows\system32\ping.exe
>
> Hit your ENTER key or click OK.
>
> NOTE :
> Change D to your CD drive letter if different.
>
> --
> Hope this helps. Let us know.
>
> Wes
> MS-MVP Windows Shell/User
>
> Innews:1180234188.149814.295690@w5g2000hsg.googleg roups.com,
> Mike <gongweig...******.com> hunted and pecked:
>
>
>
> > On May 26, 12:54 pm, "Wesley Vogel" <123WVogel...@comcast.net> wrote:
> >> What happens with these commands?

>
> >> pingwww.google.com
> >> ping.exewww.google.com
> >> %windir%\system32\pingwww.google.com
> >> %windir%\system32\ping.exewww.yahoo.com
> >> %systemroot%\system32\pingwww.google.com
> >> %systemroot%\system32\ping.exewww.yahoo.com

>
> >> Anything work?
> >> Any error messages?

>
> >> Why don't my commands
> >> work?http://internet.cybermesa.com/~bstew...dprompt.html#6

>
> >> --
> >> Hope this helps. Let us know.

>
> >> Wes
> >> MS-MVP Windows Shell/User

>
> >> Innews:1180187510.030854.33530@p77g2000hsh.googleg roups.com,
> >> Mike <gongweig...******.com> hunted and pecked:

>
> >>> When I run "ping" command in DOS windows, there is no output and it
> >>> returns immediately to command prompt.

>
> >>> What might goes wrong ?

>
> >>> Thanks ahead.- Hide quoted text -

>
> >> - Show quoted text -

>
> > Here is what did:

>
> > #####################################
> > C:\Documents and Settings>pingwww.yahoo.com

>
> > C:\Documents and Settings>pingwww.google.com

>
> > C:\Documents and Settings>ping.exewww.google.com

>
> > C:\Documents and Settings>%windir%\system32\pingwww.google.com

>
> > C:\Documents and Settings>%windir%\system32\ping.exewww.google.com

>
> > C:\Documents and Settings>%systemroot%\system32\pingwww.google.com

>
> > C:\Documents and Settings>%systemroot%\system32\ping.exewww.google. com

>
> > C:\Documents and Settings>
> > ##########################################- Hide quoted text -

>
> - Show quoted text -



Something weird happens.

When I copy the "ping.exe" from "c:\Windows\System32\" to some other
folder, like "d:\". Then I invoke it like " d:\ping.exe www.hotmail.com"
, I can see the output correctly.

Why the same "ping.exe" will behave differently in different folers ?
I don't quite get it.



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #10 (permalink)  
Old 05-27-2007, 07:20 PM
Nightowl
Newsgroup Contributor
 
Posts: n/a
Re: no output for ping command

Mike <gongweigang******.com> wrote on Sun, 27 May 2007:

>Something weird happens.
>
>When I copy the "ping.exe" from "c:\Windows\System32\" to some other
>folder, like "d:\". Then I invoke it like " d:\ping.exe www.hotmail.com"
>, I can see the output correctly.
>
>Why the same "ping.exe" will behave differently in different folers ?
>I don't quite get it.


Hi Mike

Does it work correctly if you specify the *literal* path, like this:

C:\Windows\System32\ping.exe www.hotmail.com

while it doesn't if you use a system variable such as %systemroot% or
%windir%?

If so, it's likely the data type of the Registry entry for your Path is
wrong -- usually REG_SZ when it should be REG_EXPAND_SZ. The link that
Wesley gave you to Bill Stewart's site has a program called Fixpath that
will change it for you, and instructions on how to do it manually if you
prefer: http://internet.cybermesa.com/~bstew...dprompt.html#6

--
Nightowl
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #11 (permalink)  
Old 05-28-2007, 08:10 AM
Mike
Newsgroup Contributor
 
Posts: n/a
Re: no output for ping command

On May 27, 10:01 pm, Nightowl <owl@[127.0.0.1]> wrote:
> Mike <gongweig...******.com> wrote on Sun, 27 May 2007:
>
> >Something weird happens.

>
> >When I copy the "ping.exe" from "c:\Windows\System32\" to some other
> >folder, like "d:\". Then I invoke it like " d:\ping.exewww.hotmail.com"
> >, I can see the output correctly.

>
> >Why the same "ping.exe" will behave differently in different folers ?
> >I don't quite get it.

>
> Hi Mike
>
> Does it work correctly if you specify the *literal* path, like this:
>
> C:\Windows\System32\ping.exewww.hotmail.com
>
> while it doesn't if you use a system variable such as %systemroot% or
> %windir%?
>
> If so, it's likely the data type of the Registry entry for your Path is
> wrong -- usually REG_SZ when it should be REG_EXPAND_SZ. The link that
> Wesley gave you to Bill Stewart's site has a program called Fixpath that
> will change it for you, and instructions on how to do it manually if you
> prefer:http://internet.cybermesa.com/~bstew...dprompt.html#6
>
> --
> Nightowl


No, it still doesn't work if I specify literal path. It's so weird.

Following is what I did:


C:\>c:\WINDOWS\system32\ping.exe www.hotmail.com

C:\>copy c:\windows\system32\ping.exe d:\
Overwrite d:\ping.exe? (Yes/No/All): y
1 file(s) copied.

C:\>d:\ping.exe www.hotmail.com

Pinging www.hotmail.aate.nsatc.net [66.35.214.30] with 32 bytes of
data:

Reply from 66.35.214.30: bytes=32 time=75ms TTL=45
Reply from 66.35.214.30: bytes=32 time=75ms TTL=45

Ping statistics for 66.35.214.30:
Packets: Sent = 2, Received = 2, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 75ms, Maximum = 75ms, Average = 75ms
Control-C
^C
C:\>



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #12 (permalink)  
Old 05-28-2007, 08:50 AM
Wesley Vogel
Newsgroup Contributor
 
Posts: n/a
Re: no output for ping command

Why don't my commands work?
http://internet.cybermesa.com/~bstew...dprompt.html#6

--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In news:1180364674.199176.304050@g4g2000hsf.googlegro ups.com,
Mike <gongweigang******.com> hunted and pecked:
> On May 27, 10:01 pm, Nightowl <owl@[127.0.0.1]> wrote:
>> Mike <gongweig...******.com> wrote on Sun, 27 May 2007:
>>
>>> Something weird happens.

>>
>>> When I copy the "ping.exe" from "c:\Windows\System32\" to some other
>>> folder, like "d:\". Then I invoke it like " d:\ping.exewww.hotmail.com"
>>> , I can see the output correctly.

>>
>>> Why the same "ping.exe" will behave differently in different folers ?
>>> I don't quite get it.

>>
>> Hi Mike
>>
>> Does it work correctly if you specify the *literal* path, like this:
>>
>> C:\Windows\System32\ping.exewww.hotmail.com
>>
>> while it doesn't if you use a system variable such as %systemroot% or
>> %windir%?
>>
>> If so, it's likely the data type of the Registry entry for your Path is
>> wrong -- usually REG_SZ when it should be REG_EXPAND_SZ. The link that
>> Wesley gave you to Bill Stewart's site has a program called Fixpath that
>> will change it for you, and instructions on how to do it manually if you
>> prefer:http://internet.cybermesa.com/~bstew...dprompt.html#6
>>
>> --
>> Nightowl

>
> No, it still doesn't work if I specify literal path. It's so weird.
>
> Following is what I did:
>
>
> C:\>c:\WINDOWS\system32\ping.exe www.hotmail.com
>
> C:\>copy c:\windows\system32\ping.exe d:\
> Overwrite d:\ping.exe? (Yes/No/All): y
> 1 file(s) copied.
>
> C:\>d:\ping.exe www.hotmail.com
>
> Pinging www.hotmail.aate.nsatc.net [66.35.214.30] with 32 bytes of
> data:
>
> Reply from 66.35.214.30: bytes=32 time=75ms TTL=45
> Reply from 66.35.214.30: bytes=32 time=75ms TTL=45
>
> Ping statistics for 66.35.214.30:
> Packets: Sent = 2, Received = 2, Lost = 0 (0% loss),
> Approximate round trip times in milli-seconds:
> Minimum = 75ms, Maximum = 75ms, Average = 75ms
> Control-C
> ^C
> C:\>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #13 (permalink)  
Old 05-28-2007, 09:30 AM
Mike
Newsgroup Contributor
 
Posts: n/a
Re: no output for ping command

On May 28, 11:42 am, "Wesley Vogel" <123WVogel...@comcast.net> wrote:
> Why don't my commands work?http://internet.cybermesa.com/~bstew...dprompt.html#6
>
> --
> Hope this helps. Let us know.
>
> Wes
> MS-MVP Windows Shell/User
>
> Innews:1180364674.199176.304050@g4g2000hsf.googleg roups.com,
> Mike <gongweig...******.com> hunted and pecked:
>
>
>
> > On May 27, 10:01 pm, Nightowl <owl@[127.0.0.1]> wrote:
> >> Mike <gongweig...******.com> wrote on Sun, 27 May 2007:

>
> >>> Something weird happens.

>
> >>> When I copy the "ping.exe" from "c:\Windows\System32\" to some other
> >>> folder, like "d:\". Then I invoke it like " d:\ping.exewww.hotmail.com"
> >>> , I can see the output correctly.

>
> >>> Why the same "ping.exe" will behave differently in different folers ?
> >>> I don't quite get it.

>
> >> Hi Mike

>
> >> Does it work correctly if you specify the *literal* path, like this:

>
> >> C:\Windows\System32\ping.exewww.hotmail.com

>
> >> while it doesn't if you use a system variable such as %systemroot% or
> >> %windir%?

>
> >> If so, it's likely the data type of the Registry entry for your Path is
> >> wrong -- usually REG_SZ when it should be REG_EXPAND_SZ. The link that
> >> Wesley gave you to Bill Stewart's site has a program called Fixpath that
> >> will change it for you, and instructions on how to do it manually if you
> >> prefer:http://internet.cybermesa.com/~bstew...dprompt.html#6

>
> >> --
> >> Nightowl

>
> > No, it still doesn't work if I specify literal path. It's so weird.

>
> > Following is what I did:

>
> > C:\>c:\WINDOWS\system32\ping.exewww.hotmail.com

>
> > C:\>copy c:\windows\system32\ping.exe d:\
> > Overwrite d:\ping.exe? (Yes/No/All): y
> > 1 file(s) copied.

>
> > C:\>d:\ping.exewww.hotmail.com

>
> > Pingingwww.hotmail.aate.nsatc.net[66.35.214.30] with 32 bytes of
> > data:

>
> > Reply from 66.35.214.30: bytes=32 time=75ms TTL=45
> > Reply from 66.35.214.30: bytes=32 time=75ms TTL=45

>
> > Ping statistics for 66.35.214.30:
> > Packets: Sent = 2, Received = 2, Lost = 0 (0% loss),
> > Approximate round trip times in milli-seconds:
> > Minimum = 75ms, Maximum = 75ms, Average = 75ms
> > Control-C
> > ^C
> > C:\>- Hide quoted text -

>
> - Show quoted text -


Thanks, but the type of my PATH variable is correct.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #14 (permalink)  
Old 05-28-2007, 03:01 PM
Wesley Vogel
Newsgroup Contributor
 
Posts: n/a
Re: no output for ping command

And PATH shows what when typed into a command prompt?

Should look something like this...
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Sys tem32\Wbem

Type SET, hit Enter and scroll down to PATHEXT.

Should look something like this...
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WS F;.WSH

As a minumum you should have .COM;.EXE;.BAT;.CMD

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\
Control\Session Manager\Environment
The Value Data: Path is a Data Type: REG_EXPAND_SZ and the Value Data is
what you see in PATH in a command prompt? Or %SystemRoot% is used in the
registry entry?

This is what I have in the registry.
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\Sy stem32\Wbem;C:\Program
Files\Intel\DMIX

This is what shows in a command prompt...
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\Sys tem32\
Wbem;C:\Program Files\Intel\DMIX


--
Hope this helps. Let us know.

Wes
MS-MVP Windows Shell/User

In news:1180369483.262668.278640@w5g2000hsg.googlegro ups.com,
Mike <gongweigang******.com> hunted and pecked:
> On May 28, 11:42 am, "Wesley Vogel" <123WVogel...@comcast.net> wrote:
>> Why don't my commands
>> work?http://internet.cybermesa.com/~bstew...dprompt.html#6
>>
>> --
>> Hope this helps. Let us know.
>>
>> Wes
>> MS-MVP Windows Shell/User
>>
>> Innews:1180364674.199176.304050@g4g2000hsf.googleg roups.com,
>> Mike <gongweig...******.com> hunted and pecked:
>>
>>
>>
>>> On May 27, 10:01 pm, Nightowl <owl@[127.0.0.1]> wrote:
>>>> Mike <gongweig...******.com> wrote on Sun, 27 May 2007:

>>
>>>>> Something weird happens.

>>
>>>>> When I copy the "ping.exe" from "c:\Windows\System32\" to some other
>>>>> folder, like "d:\". Then I invoke it like "
>>>>> d:\ping.exewww.hotmail.com" , I can see the output correctly.

>>
>>>>> Why the same "ping.exe" will behave differently in different folers ?
>>>>> I don't quite get it.

>>
>>>> Hi Mike

>>
>>>> Does it work correctly if you specify the *literal* path, like this:

>>
>>>> C:\Windows\System32\ping.exewww.hotmail.com

>>
>>>> while it doesn't if you use a system variable such as %systemroot% or
>>>> %windir%?

>>
>>>> If so, it's likely the data type of the Registry entry for your Path is
>>>> wrong -- usually REG_SZ when it should be REG_EXPAND_SZ. The link that
>>>> Wesley gave you to Bill Stewart's site has a program called Fixpath
>>>> that will change it for you, and instructions on how to do it manually
>>>> if you prefer:http://internet.cybermesa.com/~bstew...dprompt.html#6

>>
>>>> --
>>>> Nightowl

>>
>>> No, it still doesn't work if I specify literal path. It's so weird.

>>
>>> Following is what I did:

>>
>>> C:\>c:\WINDOWS\system32\ping.exewww.hotmail.com

>>
>>> C:\>copy c:\windows\system32\ping.exe d:\
>>> Overwrite d:\ping.exe? (Yes/No/All): y
>>> 1 file(s) copied.

>>
>>> C:\>d:\ping.exewww.hotmail.com

>>
>>> Pingingwww.hotmail.aate.nsatc.net[66.35.214.30] with 32 bytes of
>>> data:

>>
>>> Reply from 66.35.214.30: bytes=32 time=75ms TTL=45
>>> Reply from 66.35.214.30: bytes=32 time=75ms TTL=45

>>
>>> Ping statistics for 66.35.214.30:
>>> Packets: Sent = 2, Received = 2, Lost = 0 (0% loss),
>>> Approximate round trip times in milli-seconds:
>>> Minimum = 75ms, Maximum = 75ms, Average = 75ms
>>> Control-C
>>> ^C
>>> C:\>- Hide quoted text -

>>
>> - Show quoted text -

>
> Thanks, but the type of my PATH variable is correct.


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #15 (permalink)  
Old 05-28-2007, 08:00 PM
Nightowl
Newsgroup Contributor
 
Posts: n/a
Re: no output for ping command

Mike <gongweigang******.com> wrote on Mon, 28 May 2007:

>No, it still doesn't work if I specify literal path. It's so weird.
>
>Following is what I did:
>
>
>C:\>c:\WINDOWS\system32\ping.exe www.hotmail.com
>
>C:\>copy c:\windows\system32\ping.exe d:\
>Overwrite d:\ping.exe? (Yes/No/All): y
> 1 file(s) copied.
>
>C:\>d:\ping.exe www.hotmail.com
>
>Pinging www.hotmail.aate.nsatc.net [66.35.214.30] with 32 bytes of
>data:


<snip>

Hi Mike

Okay. . . so we have established:

Your Path looks correct;
The data type of the Path entry in the Registry is correct;
There is nothing wrong with the actual ping.exe file in
\Windows\System32 (since when you copy it to D:\, it works).

The only thing I can think of is that something is blocking the ping
command when run from that location. Have you checked your firewall in
case you have accidentally set up a rule to do that?

--
Nightowl
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
A C# class to make running, and capturing their output, command line/console applicat TPC General Questions 0 09-10-2008 12:40 PM
A C# class to make running, and capturing their output, command line/console applicat TPC General Questions 0 09-09-2008 09:30 PM
Log output of regsvr32 command. Hetal Windows XP 14 12-20-2007 02:50 PM
How do i keep a ping command every 10/20 seconds MSExchange2003Student Windows XP 4 06-11-2007 10:50 PM
Strange Output On Ping Isarian Windows XP 5 05-13-2007 09:50 AM


New To Technology Questions? Do You Need Help with Your Computer or Device? Do You Need Help with this site?

All times are GMT -8. The time now is 09:21 PM.


2003 - 2009 All Rights Reserved. Technology Questions

Search Engine Friendly URLs by vBSEO 3.3.0