Jump to content

cmd promt lost ipconfig


HighDarkTemplar

Recommended Posts

Hi!

I tried using the ipconfig tool in the command line earlier today, and it just disappeared. It's still in the windows directory and working, but it's somehow been unregistered from the command line (I change to the C:\Windows\System32 directory to use it, which isen't convenient (sp?))....

Thanks!

-Nerevar

Link to comment
Share on other sites


Try opening a command prompt and enter:

SET PATH

Does %PATH% contain C.\Windows\System32\ ?

Example:

SET PATH
Path=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programmi\Suppor
t Tools\
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH

jaclaz

Link to comment
Share on other sites

Well, here is what I get:

PATH=%systemroot%\system32;%systemroot%;%systemroot%\system32\wbem;C:\Windows\system32\WindowsPowerShell\v1.0;C:\Programfiler\Microsoft SQL Server\90\Tools\binn;C:\CUDA\bin;C:Programfiler\AgPerfMon;C:\Programfiler\NVidia Corporation\Cg\bin;C:\Programfiler\NVidia Corporation\Gelato\bin;C:\Programfiler\NVidia Corporation\DDS Utilities

PATHEXT=.com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh;.psc1

What's even weirder is that the rest of them disappeared today :-/

Thanks!

-Nerevar

Edit: For thoose who don't guess it "Programfiler"="Program Files" in english.....

Edited by Nerevar
Link to comment
Share on other sites

It strange, however. :unsure:

If you have windows on C:\Windows, these two should be exactly the same:

C:\Windows\system32
%systemroot%\system32

maybe something :w00t: has changed value to %systemroot%, try running in a console

SET SY

You should get:

systemdrive=C:

systemroot=C:\WINDOWS

jaclaz

Link to comment
Share on other sites

Try getting a Win32 port of "WHICH", either a compiled one or a batch/vbs equivalent:

http://unxutils.sourceforge.net/

http://www.robvanderwoude.com/which.html

or since you appear to be using powershell:

http://blog.saadware.com/2008/07/10/powers...-which-command/

Try both (from any folder BUT C:\Windows\system32\)

WHICH IPCONFIG

and

WHICH IPCONFIG.EXE

jaclaz

Link to comment
Share on other sites

Nothing :-( Could it have something to do with corrupt enviroment variables?

Thanks for sticking with me this long :-)

-Nerevar

EDIT:

Found the solution :-) Here is what I did:

Right-click on my computer-->advanced-->enviroment variables and find the "PATH" one. Replace all the %systemroot% etc with the actual path. It's a bit weird but at least it's working for now....

Edited by Nerevar
Link to comment
Share on other sites

From what you report it seems like the value of systemroot is correct but %systemroot% does not expand to it's value VERY strange. :w00t:

Try this:

SET SY

ECHO %systemroot%

Would it be possible that somehow the % sign for variable value has been changed to something else? :unsure:

jaclaz

Edited by jaclaz
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...