Solved

Cannot Ping from the command line.

Posted on 2004-10-06
6
188 Views
Last Modified: 2010-04-14
Just recently I can no longer use the networking functions from the command line.  I can still use the "ping" command, and tracert commands if I browse directly to the Winnt/system32 directory and run them from there, however I can not just type it into the command window as I used to.  Is there a patch or something that took this functionality away?  I receive the error code 'Ping' is not recognized as an internal or external command.

V/r
Keith Critchlow
WWW.secureathome.net
Security for your Home Computer
Virginia Beach, Virginia
0
Comment
Question by:CriketyCrick
  • 3
  • 2
6 Comments
 
LVL 23

Expert Comment

by:Danny Child
ID: 12239633
has something tinkered with your PATH environment variable?

from dos, type SET and it should include something like this:
Path=C:\Program Files\NetworkSimplicity\ssh;C:\WINNT\system32;C:\WINNT;C:\WINNT\
System32\Wbem;C:\Program Files\Symantec\pcAnywhere\;C:\Program Files\Resource Ki
t\;C:\Program Files\Support Tools\

and c:\winnt\system32 should be in there

also can be seen under My Comp.. Properties.. Advanced.. Environment Variables - can edit it back in again here.
0
 

Author Comment

by:CriketyCrick
ID: 12239989
Nice tip, I looked and under path it is there everything is there with the exception that there is also a Perl directory in the front.

V/r
Keith Critchlow
WWW.secureathome.net
Security for your Home Computer
Virginia Beach, VA
0
 
LVL 95

Expert Comment

by:Lee W, MVP
ID: 12240038
All put certainly an error in the path statement.  If you don't see it yourself, post the contents of the %path% variable here.  Just type

set path

in a command prompt and post the result.
0
Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

 
LVL 23

Accepted Solution

by:
Danny Child earned 50 total points
ID: 12247197
The order's not important: from memory, when you enter a command, it tries the current folder, then the root, then works it's way through the PATH statement in order, checking each location for the command you entered.  
You may get a nanosecond or two faster response by moving c:\winnt\system32 to the start, but I wouldn't bother....

but...
some googling turned this up
http://www.techimo.com/forum/t121536.html
where someone else has a perl entry at the start, which caused their problem.  Your entries are all separated by semicolons ; yep??
heck, delete the perl entry, just for fun (note down what it was, first!), and let us know the outcome.
you may need to restart after making a change, for the new settings to take effect.
0
 

Author Comment

by:CriketyCrick
ID: 12247821
Well thanks, after you said that I remembered that prior to this problem I had installed the windows 2000 optional resource kit so that I could use the clear screen saver on my servers.  That is what installed the Perl into the path.  I set the path to Perl at the end and now my Ping and tracert and all my other commands work from the command line again.  
V/r
Keith Critchlow
WWW.SecureAtHome.net
Security for your Home Computer
Virginia Beach, VA

"If Google could get a penny for everytime that a technician used it to solve a problem, they wouldn't need to sell stock at all."
0
 
LVL 23

Expert Comment

by:Danny Child
ID: 12297585
cheers!
just an afterthought - can you still see the utilities in the perl folder?  just wondering if we should check out possible limitations on the length of the path statement....
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
VSS on host & VM 10 406
website 1 308
Domain dunctional level. 4 320
Change port for terminal servers (2000 and 2003) 3 154
NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
This tutorial shows how to create a greeting card by combining two image layers and a text layer on a PC using a free image editing app.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question