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?
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?
Did you change the path statement? Can you specify the path and use the commands?
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
No, I didn't mean to change it now. The Windows\System folder has to be in the path.
try this:
VB Code:
c:\windows\system32\ipconfig
Thx! That worked but why do I have to change to the windows/system32 directory when I didn't have to do that before?
This is my PATH
Goto cmd and type: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
That is the bareminium you need.PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem
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:
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....)%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem
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.
My Projects: [ Instant Messagener Client/Server ] [ VBPictochat ]
My Sites:
[ Datanethost ]
[ Helpdesk ]
Remember if my post was helpful then Rate This Post.
Thx a lot. That helped out big time. I changed the path variable so that I could compile Java programs easier.