Can't run any command in DOS
Hello...
i am running windows xp home sp1, DOS [Version 5.1.2600] on my compaq machine. i am not able to run any command exept DIR neither from cmd.exe nor from command.com. i am able to ping from RUN. but whnever i try to ping from DOS prompt i get this message:
Code:
C:\>ping 172.16.0.1
'ping' is not recognized as an internal or external command,
operable program or batch file.
All my ping and netstat batch files got corrupted too.
I scanned for viruses and worms but did'nt find any such thing. i tried to run in safe mode too but again same message :confused: .i am pissed off by this all. pliz help me..i am very confused..
Thanx...
Your PATH variable seem's to have been changed...
This is your problem
"Path=c:\sun\jdk1.3.1_12\bin"
The solution is to get a DOS session going then type
SET PATH=C:\WINDOWS\SYSTEM32;C:\WINDOWS
That will give you a basic functional path. Just for that session mind! To make it work for all future sessions you'll have to edit the file C:\AUTOEXEC.BAT
Investigate all files in the C:\ directory that start AUTOEXEC to attempt to find the previous PATH setting.
CD C:\
DIR AUTOEXEC.*
TYPE AUTOEXEC.OLD
or do a search within windows on the C: for AUTOEXEC.* and open each one in notepad.
Hope I've helped and not patronised!
Oops! I should have mentioned that...
As SwordFish_13 subtly pointed out...add c:\windows\system32;c:\windows; to the path.
Of course... you may wish to check that the current path is valid first. Just see if you can cd to c:\sun\jdk1.3.1_12\bin if you can't then there's no point it being in the path!
You're running on a Compaq not a Sun machine, so I can not imagine why this path is set like this. I have, however, seen weirder things!
edit:
Oops! - You're right Swordfish_13, he is using XP and there is no autoexec.bat Sorry!! Don't think my advice would mess him up - just lead him on a wild goose chase. Apologies in advance to psycO for that.
edit end:
Re: Oops! I should have mentioned that...
Quote:
Originally posted here by Simple Simon
As SwordFish_13 subtly pointed out...add c:\windows\system32;c:\windows; to the path.
Of course... you may wish to check that the current path is valid first. Just see if you can cd to c:\sun\jdk1.3.1_12\bin if you can't then there's no point it being in the path!
You're running on a Compaq not a Sun machine, so I can not imagine why this path is set like this. I have, however, seen weirder things!
Actually i set that path for my JAVA..but forgot to add system path..and now i was getting mad that what has happend..God bless AntiOnline and you ppl, my problem is solved.Bingo!!
I knew that Autoexec.bat is not available in XP. but Thanks anyway.