HighDarkTemplar Posted December 7, 2008 Posted December 7, 2008 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
jaclaz Posted December 7, 2008 Posted December 7, 2008 Try opening a command prompt and enter:SET PATHDoes %PATH% contain C.\Windows\System32\ ?Example:SET PATHPath=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Programmi\Support Tools\PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSHjaclaz
HighDarkTemplar Posted December 8, 2008 Author Posted December 8, 2008 (edited) 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 UtilitiesPATHEXT=.com;.exe;.bat;.cmd;.vbs;.vbe;.js;.jse;.wsf;.wsh;.psc1What's even weirder is that the rest of them disappeared today :-/Thanks!-NerevarEdit: For thoose who don't guess it "Programfiler"="Program Files" in english..... Edited December 8, 2008 by Nerevar
jaclaz Posted December 8, 2008 Posted December 8, 2008 It strange, however. If you have windows on C:\Windows, these two should be exactly the same:C:\Windows\system32%systemroot%\system32maybe something has changed value to %systemroot%, try running in a consoleSET SYYou should get:systemdrive=C:systemroot=C:\WINDOWSjaclaz
HighDarkTemplar Posted December 8, 2008 Author Posted December 8, 2008 And that is exactly what I get..... Thanks for your help so far. It's late here so I'll have to continue in, say a 16 hour time or so (after the exam tomorrow :-/ )-Nerevar
jaclaz Posted December 9, 2008 Posted December 9, 2008 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.htmlor 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 IPCONFIGandWHICH IPCONFIG.EXEjaclaz
HighDarkTemplar Posted December 9, 2008 Author Posted December 9, 2008 (edited) Nothing :-( Could it have something to do with corrupt enviroment variables?Thanks for sticking with me this long :-)-NerevarEDIT: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 December 9, 2008 by Nerevar
jaclaz Posted December 10, 2008 Posted December 10, 2008 (edited) From what you report it seems like the value of systemroot is correct but %systemroot% does not expand to it's value VERY strange. Try this:SET SYECHO %systemroot%Would it be possible that somehow the % sign for variable value has been changed to something else? jaclaz Edited December 10, 2008 by jaclaz
HighDarkTemplar Posted December 10, 2008 Author Posted December 10, 2008 Seems like it, what I did works as a temporary fix though. I haven't found anything like it :-(Thanks!-Nerevar
Tripredacus Posted December 11, 2008 Posted December 11, 2008 Is this XP here? I am wondering because you have PowerShell in your path var.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now