1.

Solve : DOS Error??

Answer»

Hi,

I wanted to find out what was my ip address and so i typed "ipconfig /all" without the quotes into MSDos but i received this error:
'ipconfig' is not recognized as an internal or external command,
operable program or batch file.

Anyone knows what might be causing this? Because previously i could do the ipconfig command. Btw, i am using Win XP Pro SP2.Are you in a directory on the path?

cd \windows


and then type it. Does that fix it?

By the way you do not have DOS. Hi,

I have done exactly that and still it does not work.Quote

so i typed "ipconfig /all" without the quotes into MSDos

By MSDOS, I'm guessing you're referring to the CMD shell program. Check your PATH. In order to find IPCONFIG, C:\windows\system32 must be on the path.

8-)

Hi Sidewinder,

Yup, that WORKED! Is there anyway i can set the starting path to be c:\Windows\System32 instead? ThanksRight click My Computer==>Properties==>Advanced==>Environment Variables

Edit the PATH variable. User variables refer to only you; system variables refer to every user.

OK your way out. No need to reboot; changes are immediate.

I"d be curious how this got mucked up. The system32 dir is a standard path entry for XP.

Good luck. 8-)Hi Sidewinder,

What should i add into the PATH variable? There are some values inside that PATH variable that allows my OS to do some Java compiling or something. I was asked to do this by my lecturer in school. The value is "C:\j2sdk1.4.2_03\bin;C:\Sun\AppServer\bin".Edit the PATH Variable Name. Insert either %SystemRoot%\system32; OR c:\windows\system32; into the beginning of the Variable Value.

Be careful not to muck up whatever value is already there. It is very necessary that you include the semi-colon.

Good luck. 8-)

Quote
Hi Sidewinder,

What should i add into the PATH variable? There are some values inside that PATH variable that allows my OS to do some Java compiling or something. I was asked to do this by my lecturer in school. The value is "C:\j2sdk1.4.2_03\bin;C:\Sun\AppServer\bin".

Aha here's where it got mucked up...Hi,

I have entered the values you as MENTIONED, when i GO to my ms dos, the starting path is still the same but when i type in ipconfig it works. Why is that so?the starting path is still the same

The starting directory is still the same but your path now includes your system32 directory.
(By default your system32 directory is in your path but you must have deleted it with the previous change.

You can now set your opening directory to be C:\> for the neatness factor and everything will still work.
(I like neat) Quote
You can now set your opening directory to be C:\> for the neatness factor and everything will still work.

Right click the shortcut used to launch CMD==>Properties

Change the "Start In" value to the directory of your CHOOSING. OK your way out.

8-)

Neatness Factor: 9.7


Discussion

No Comment Found