China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-26 09:46
中国DOS联盟论坛 » 其它操作系统综合讨论区 » In Windows 7, the cmd cannot ping. Please everyone help! View 2,418 Replies 3
Original Poster Posted 2009-12-17 17:38 ·  中国 上海 徐汇区 联通
初级用户
Credits 62
Posts 30
Joined 2007-12-01 17:51
18-year member
UID 104364
Gender Male
Status Offline
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
Floor 2 Posted 2009-12-17 18:18 ·  中国 北京 中电华通通信有限公司
高级用户
★★★
据说是李先生
Credits 609
Posts 400
Joined 2008-04-23 15:55
18-year member
UID 116706
Gender Male
Status Offline
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.
┏━━━━━━┓
┃据说是李先生┃
┠──────┨
┃*ntRSS┃
┗━━━━━━┛
Floor 3 Posted 2009-12-17 20:42 ·  中国 吉林 延边朝鲜族自治州 延吉市 电信
银牌会员
★★★
正在学习中的菜鸟...
Credits 1,039
Posts 897
Joined 2009-03-01 15:34
17-year member
UID 140302
Gender Male
From 在地狱中仰望天堂
Status Offline
Enter "set" in the command to check the "path" part of the variables
Floor 4 Posted 2009-12-18 12:16 ·  中国 上海 徐汇区 联通
初级用户
Credits 62
Posts 30
Joined 2007-12-01 17:51
18-year member
UID 104364
Gender Male
Status Offline
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!~~
Forum Jump: