Why my command prompt is not recognizing 'netstat' as a command

6

2

I want to figure out my running ports in Windows 10, but when I write command

C:\> netstat 

in the console, I get the following error

'netstat' is not recognized as an internal or external command,
operable program or batch file.

or output of echo %PATH% as and of echo %PATH EXT%

Ameen

Posted 2017-08-02T19:05:32.173

Reputation: 59

What happens off you use the command C:\Windows\system32\netstat.exe? – I say Reinstate Monica – 2017-08-02T19:11:13.600

Have you checked to see whether netstat.exe is present? On my system, it's in C:\Windows\System32. Is C:\Windows\System32 in your PATH? – Jeff Zeitlin – 2017-08-02T19:11:32.493

@Twisty when I did C:\Windows\system32\netstat.exe it give me the result.

JeffZeitlin yes I do have C:\Windows\System32 in my Path – Ameen – 2017-08-02T19:14:34.517

2Edit your question to include the output of echo %PATH% and of echo %PATHEXT% – Steven – 2017-08-02T19:18:08.020

4Do where netstat* and/or for %A in (netstat.exe) Do @Echo %~$PATH:A return (only) the correct path? – LotPings – 2017-08-02T19:39:26.533

Answers

0

It sounds like NetStat is no longer registered. You can check by going to My Computer - Properties - Advanced - Environment Variables - Path. If it is not there you can add it, just make sure you use the entire path when you do.

DBADon

Posted 2017-08-02T19:05:32.173

Reputation: 259