Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 601
  • Last Modified:

non recognizable command in cmd promt

I have a user that it a tech guy and he no longer is able to get his command prompt to be recognized. Says ping is not a recognized as an internal command and the same with Tracert??
0
Dennis Miller
Asked:
Dennis Miller
  • 4
  • 3
  • 3
  • +2
5 Solutions
 
entceeCommented:
Ping and tracert reside in the WINDOWS\system32 folder. Try typing the following before typing the ping ot tracert commands:

cd C:\WINDOWS\system32

Sounds to me that C:\WINDOWS\system32 is no longer in his path. (you can type path at the command prompt to see all the paths).
0
 
entceeCommented:
In in fact c:\windows\system 32 in not set up as a path, you can do the following to add it:

From the desktop, right click My Computer and click properties.
In the System Properties window, click on the Advanced tab.
In the Advanced section, click the Environment Variables button.  
Finally, in the Environment Variables window, highlight the path variable in the Systems Variable section and click edit. Add or modify the path lines with the paths you wish the computer to access. Each different directory is separated with a semicolon as shown below.
0
 
entceeCommented:
C:\Program Files;C:\Winnt;C:\Winnt\System32
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
SheharyaarSaahilCommented:
Right click on My Computer on desktop>Properties>Advanced>Environment Variables
make sure that Path under system variables, includes %SystemRoot%\system32 or C:\Windows\system32
where C: is your system drive and Windows and System32 are your system folders.
0
 
rpggamergirlCommented:
It sounds very much like an Alcan/Alcra worm that replaces cmd.exe, ping/tracert with a .com extensions.
Or could just be a messed up path.

If it's malware it should show up in hijackthis scan.
Can you run Hijackthis and show us the log please?
http://danborg.org/spy/hjt/alternativ.exe
Open Hijackthis, click "Do a system scan and save a logfile" please don't fix anything yet.
0
 
frostburnCommented:
From the command promt type:

path c:\windows\system32

Hope this helps!
0
 
rpggamergirlCommented:
Ooops didn't refresh...

Also check in the registry, navigate to this subkey;

HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment

On the right pane, the "Path" under Type should have -->  Reg_Expand_SZ

0
 
Dennis MillerAuthor Commented:
I need more points to give out. I will have him run these and see if ti works. I would think by the response that this is not a first. Thanks all and I will get back ASAP.
0
 
Dennis MillerAuthor Commented:
The path is fine. So is the registry. I dont think its a virus since the executables work if I type the complete path. This is his answer. I am now at a loss.
0
 
frostburnCommented:
In a command prompt just try typing:

path c:\windows\system32

and then try running ping or tracert.

0
 
SheharyaarSaahilCommented:
you can also try running a sfc /scannow from start>run in case if there is any corruption in any of the windows system files.
0
 
Dennis MillerAuthor Commented:
I thank you all. It seems the last try that Frostburn suggested worked as I was able to ping after that. I would say you all gave me basically the same info and varried some but it was all good stuff so I will spread the points. I also liked the command given by Sheharyaar Saahil except spelling her name took to long. I tahnk her as well.
0
 
frostburnCommented:
Happy to help!
Cheers!
0
 
SheharyaarSaahilCommented:
>> I also liked the command given by Sheharyaar Saahil except spelling her name took to long. I tahnk her as well
you can call me Shehar.....and its "him" not "her" :)
0
 
rpggamergirlCommented:
millerdog,
Glad it's solved! thanks.


@Shehar:
that's what happens when you're name begins with a "she" :)
0
 
SheharyaarSaahilCommented:
yeah i know! =(
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 4
  • 3
  • 3
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now