PDA

Click to See Complete Forum and Search --> : ipconfig command not working anymore!!!


GamerMax5
Dec 13th, 2005, 03:30 PM
I can't get any network monitoring commands like ipconfig and netstat to work in Command Prompt anymore! What happened?

It shouldn't have anything to do with the fact that I changed the default directory because I program in Java could it?

dglienna
Dec 13th, 2005, 03:32 PM
Did you change the path statement? Can you specify the path and use the commands?

GamerMax5
Dec 13th, 2005, 03:57 PM
Yeah I changed the path manually to the local c: drive and then tried the commands but it says that it's an unrecognized batch command and won't execute

dglienna
Dec 13th, 2005, 03:59 PM
No, I didn't mean to change it now. The Windows\System folder has to be in the path.

try this:

c:\windows\system32\ipconfig

GamerMax5
Dec 13th, 2005, 04:04 PM
Thx! That worked but why do I have to change to the windows/system32 directory when I didn't have to do that before?

k1ll3rdr4g0n
Dec 13th, 2005, 04:43 PM
This is my PATH

PATH=C:\GTK\bin;C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\
Wbem;C:\Program Files\MySQL\MySQL Server 4.1\bin;c:\progra~1\softpae\builde~1\bi
n;c:\progra~1\softpae\builde~1\compiler\bin

Goto cmd and type:
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem

That is the bareminium you need.

If that doesn't work, (On XP) Right click My Computer -> Properties. Click on the tab that is labeled Advanced. Click on Environment Variables. Scroll down in the window 'System Variables' until you see 'Path'. Put this in there:
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem

Click OK then Click OK and Click OK, exit out of the comand prompt and re run cmd (or command.com if your old school....)

What does Path do?
It tell your computer to look for an executable that isn't in the folder you are currently in. Which allows you to run programs such as ipconfig without having to be in the windows folder.

GamerMax5
Dec 13th, 2005, 05:13 PM
Thx a lot. That helped out big time. I changed the path variable so that I could compile Java programs easier.