Ping, IPConfig, Format, Netstat, etc. Not Recognized as Commands
来源:互联网 发布:淘宝作图用什么软件 编辑:程序博客网 时间:2024/05/29 17:48
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通了。因此又有下文说:
> 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.
- Ping, IPConfig, Format, Netstat, etc. Not Recognized as Commands
- ipconfig...ping...netstat
- ping is not recognized as internal or external command
- file not recognized:file format not recognized
- file not recognized: File format not recognized
- 网络命令:ping、ipconfig、tracert、netstat、arp
- File format not recognized||strip
- strip error: file format not recognized
- android-vs Error: file format not recognized
- gdb not in executable format file format not recognized
- libc.so.6: file format not recognized; treating as linker script & libc.so.6:1: syntax error
- libc.so.6: file format not recognized; treating as linker script & libc.so.6:1: syntax error
- could not read symbols: File format not recognized
- Windows commands for network:PING,Netstat and Tracert
- /lib/libmatrix.a: file not recognized: File format not recognized collect2: ld returned 1 exit statu
- 解决windows的dos下某些命令例如ping、telnet、more 不是内部或外部命令(is not recognized as an internal or external command)
- “undefined JNI_GetCreatedJavaVM”和“File format not recognized”错误原因分析
- QT5 cannot find usr/local/lib, file format not recognized
- Web Service学习笔记(3)
- 序:我要学习linux了
- vc 利用IEHelper实现简单网址过滤
- document.all.item的解释和一个表单向多页面提交
- COM原理与应用----COM的实现
- Ping, IPConfig, Format, Netstat, etc. Not Recognized as Commands
- DNS
- 另眼看BI项目报表设计
- 动态规划【转】
- 用java通过串口发送短信,并且部署到tomcat
- COM原理及应用----COM特性
- 多种方法教你破解电信共享上网的限制
- COM原理及应用----用Visual C++开发COM应用
- ASP.NET缓存方法分析和实践示例