中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-26 17:29
47,812 topics / 349,912 posts / today 2 new / 48,264 members
其它操作系统综合讨论区 » In Windows 7, the cmd cannot ping. Please everyone help!
Printable Version  2,602 / 3
Floor1 344611734 Posted 2009-12-17 17:38
初级用户 Posts 30 Credits 62
Hello everyone, my cmd under Windows 7 can't ping, netstat and other network commands seem to be unusable, but commands like cd\ and dir can be used. When pinging, it shows that it is not an internal command or an external command.

I set the environment variables when installing Java recently. Does that have something to do with it? I remember it used to be okay.

Attachments
未命名.gif (16.78 KiB)
Floor2 qinchun36 Posted 2009-12-17 18:18
高级用户 Posts 400 Credits 609
Oh, you wouldn't have deleted the original things in the path when setting the JAVA environment variables and changed it to the path of your JAVA, right??

You should edit it, separate with semicolons and add the path of your JAVA. I don't know the WIN7 system path, it should still be %windir%\system32, right? Just find that path and add it in.
Floor3 Hanyeguxing Posted 2009-12-17 20:42
银牌会员 Posts 897 Credits 1,039 From 在地狱中仰望天堂
Enter "set" in the command to check the "path" part of the variables
Floor4 344611734 Posted 2009-12-18 12:16
初级用户 Posts 30 Credits 62
Originally posted by qinchun36 at 2009-12-17 06:18 PM:
Oh my god, did you delete the original content in the path when setting up the Java environment variables and replace it with the path to your Java?

You should have edited it, separated by semicolons, and added the path to your Java...






Hehe, you're right. I also had this thought at the beginning, but then I didn't think too much and just overwrote it with the Java path. Now I've changed the path to: %JAVA_HOME%\bin;%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem. It's already working. Thanks!~~
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023