home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Technical Support
Ask a Tech Support Question (free)!

Path Resolution Issues (for info only)

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2739
Discussions: 201,000, Posts: 2,380,043, Members: 246,371
Old March 12th, 2004, 11:57 AM   Digg it!   #1 (permalink)
Ultimate Member
 
Banti's Avatar
 
Join Date: Oct 2001
Location: Alpharetta, GA
Posts: 1,166
Send a message via Yahoo to Banti
Path Resolution Issues (for info only)

First off I have fixed this problem. I am submitting this info here for others. I did a quick search and did not find anything like this here.

The Problem

One day I noticed a problem with commands not working in my Win2k Command prompt. After some checking I noticed that typing in 'path' an unresolved path was returned.

The History

A quick lesson for those who have no clue what I just said...

In WinNT type OSes there are several system environmental variables that are there for your convenience. You can view some...

echo %systemroot%
echo %homedrive%
echo %path%

You can view some in windows
Start->Settings->Control Panel->System->Advanced->Environmental Variables

The system variables are on the bottom.

These variables are used to make things simpler. Lets say for example that you want to execute a file that will always appear in the system32 directory of someone's computer, but you do not want/or cannot search for that directory. You could make a .bat file or script that references

%systemroot%\system32\notepad.exe (or whatever)

and this line will execute notepad (if it exists) on all WinNT-based OSes.

The path variable is known (to Windows) as

%systemroot%\system32;%systemroot%;%systemroot%\sy stem32\wbem

and when you type in 'path' or 'echo %path%' your OS will resolve (look up) these %name% variables to figure out what that means and print

PATH=C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\ Wbem

my computer was printing

PATH=%systemroot%\system32;%systemroot%;%systemroo t%\system32\wbem

so my path was not set correctly and I could not find files that are obviously there (unless I manually add the correct options to my path).

The Culprit

Well all of these variables are located in you registry.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Contro l\Session Manager\Environment

Some are of type REG_SZ and some are of the type REG_EXPAND_SZ. The path variable should be of type REG_EXPAND_SZ but it was of type REG_SZ. So it was not being expanded (resolved).

This was due to a HP printer install. For some reason the registry key type was changed.

The Fix

To the best of my knowledge you cannot change the type of path so you need to create a new value. And this can be accomplished without mucking around with regedit (actually you might not be able to properly fix it with regedit at all).

Go here
Start->Settings->Control Panel->System->Advanced->Environmental Variables
  • Click on 'path' under system variables and select Edit.
  • Highlight the entire path and copy.
  • Click Cancel.
  • Create a new variable and paste the path in (use the New button)
  • Make the name unique (your initials maybe).
  • Click Ok to set.
  • Open up a command prompt to test.
  • Type 'echo %thename%' if it returns the expanded version you are set
  • Delete the 'path' variable by selecting it and clicking Delete
  • Edit the unique variable and change the name to 'path'
  • Click Ok until you are back at the Control Panel window
  • Return to the command prompt to test.
  • Type 'echo %path%' and you should have your expanded path


Banti
~~edit~~
Dang grammar

Last edited by Banti : March 12th, 2004 at 12:04 PM.
Banti is offline   Reply With Quote
Old March 12th, 2004, 12:07 PM     #2 (permalink)
Where's the beef?
 
Scott Tiger's Avatar
 
Join Date: Mar 2002
Location: Southwest, VA
Posts: 3,585
Thanks listing your fix. I'm sure someone will benefit from your post.
__________________
Where's Lunch?
Scott Tiger is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3126)
‘Rogue’ or ‘Rouge’? (10)
Foxconn Blackops x48 MoBo (5)
Nvidia GTX 260 problem (14)
Delete an OS (18)
Laptop with wireless problem. (14)
Wireless Televisions. (12)
CPU fan stops spinning randomly (11)
Regular Build (11)
Point and Shoot Camera Suggestions. (9)
windows vista security holes (19)
[F@H SPAM 11/16/09] ! 1/2 months to.. (42)
windows 7 problem (7)
Internet Lost (5)
Recent Discussions
System restore :) (1)
Laptop with wireless problem. (14)
Looking for new motherboard (2)
[F@H SPAM 11/16/09] ! 1/2 months to r.. (42)
add ram to existing (4)
Computer shutting down on its own (6)
EVGA 9800 gtx help with finding a goo.. (13)
"Documents and Settings" fo.. (7)
Delete an OS (18)
Outputing 1080p from my PC to my 720p.. (0)
panasonic dmr ez48veb recorder (0)
Need help getting speakers to work (2)
Nvidia GTX 260 problem (14)
Point and Shoot Camera Suggestions. (9)
Is the PSU I received dead? (16)
FreeAgent drive software not x64 comp.. (1)
Intel 5100 AGN issues fixed yet? (28)
Foxconn Blackops x48 MoBo (5)
Print spooler problem (17)
Q9650 vs. Q9550 (2)
Desktop Calendar Application (2)
soundmon.exe (8)
Jedi Academy Problem (3)
Can a page file be "too big".. (1)
Size after cutting 700Mb file is 2.5 .. (0)


All times are GMT -4. The time now is 04:13 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28