Ping, IPConfig, Format, Netstat, etc. Not Recognized as Commands
生活随笔
收集整理的這篇文章主要介紹了
Ping, IPConfig, Format, Netstat, etc. Not Recognized as Commands
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
Can you use them when you point directly to them..
> C:\Windows\System32\ping.exe 127.0.0.1
? If so, you probably have a messed up PATH variable.
> echo %PATH%
Should have "C:\Windows\System32" in it, does it? 以上為google的結果,我自己用的是vista sp1 英文版,應該是一樣的道理。大意為:打開命令行,輸入:C:\Windows\System32\ping.exe 127.0.0.1 如果ping通,則說明路徑變量的設置出了問題。我自己試了一下,果然ping通了。因此又有下文說: For Windows XP: Right click "My Computer" and click "Properties". Click the "Advanced" tab up top followed by the "Environment Variables" button at the bottom. In the 2nd list box, scroll down to the 5th or 6th entry "Path", select it and click "Edit". Add "%SystemRoot%\system32;%SystemRoot%;" (minus the quotes) to the beginning of the line. Okay the changes and try out your commands now. 雖然是以xp為例,不過我試了一下,對vista的路徑設置是一樣的。具體操作為“computer->properties->Advanced system settings->Invironment Variables->”在第二個編輯框中即System Variables中找到PATH,選中,編輯,添加“%SystemRoot%\system32;%SystemRoot%;”(注意分號用于隔開不同的路徑)。OK即可。 重新敲入ping,成功。 如果在開始的手動輸入ping的路徑的情況下,依然無法識別命令,則說明windows/system32下的ping.exe等文件丟失,找一個一樣的系統復制一份就可以了 Probably the .exes for the commands are deleted. They should be in \Windows\System32 (ping.exe, defrag.exe, ipconfig.exe). You can repair the installation or just simply find a computer with the same OS and copy the few you need.
> C:\Windows\System32\ping.exe 127.0.0.1
? If so, you probably have a messed up PATH variable.
> echo %PATH%
Should have "C:\Windows\System32" in it, does it? 以上為google的結果,我自己用的是vista sp1 英文版,應該是一樣的道理。大意為:打開命令行,輸入:C:\Windows\System32\ping.exe 127.0.0.1 如果ping通,則說明路徑變量的設置出了問題。我自己試了一下,果然ping通了。因此又有下文說: For Windows XP: Right click "My Computer" and click "Properties". Click the "Advanced" tab up top followed by the "Environment Variables" button at the bottom. In the 2nd list box, scroll down to the 5th or 6th entry "Path", select it and click "Edit". Add "%SystemRoot%\system32;%SystemRoot%;" (minus the quotes) to the beginning of the line. Okay the changes and try out your commands now. 雖然是以xp為例,不過我試了一下,對vista的路徑設置是一樣的。具體操作為“computer->properties->Advanced system settings->Invironment Variables->”在第二個編輯框中即System Variables中找到PATH,選中,編輯,添加“%SystemRoot%\system32;%SystemRoot%;”(注意分號用于隔開不同的路徑)。OK即可。 重新敲入ping,成功。 如果在開始的手動輸入ping的路徑的情況下,依然無法識別命令,則說明windows/system32下的ping.exe等文件丟失,找一個一樣的系統復制一份就可以了 Probably the .exes for the commands are deleted. They should be in \Windows\System32 (ping.exe, defrag.exe, ipconfig.exe). You can repair the installation or just simply find a computer with the same OS and copy the few you need.
轉載于:https://blog.51cto.com/tontinme/113534
總結
以上是生活随笔為你收集整理的Ping, IPConfig, Format, Netstat, etc. Not Recognized as Commands的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 网络导通概率的研究
- 下一篇: solidworks分析视频教程-结构应