View Full Version : Environment path problems with 2000

09-19-2003, 09:44 AM
I am having an issue with adding to the path of the environment variable of 2000. It seems to add it fine but if I go to a command line and try to ping an ip address it fails due to the fact that the system path is being red as %system% instead of, for example c:\System\.......

02-10-2004, 08:41 AM
Did anyone ever find a solution to this, as I'm now suffering the same problem ?

02-10-2004, 03:49 PM
I have not had a problem adding to the path environment variable in 2k. Suggest you post the code that you use to add the path.

02-16-2004, 08:05 AM
How do yout set the path?
Like this:
RegDBSetKeyValueEx(regPath, regName, REGDB_STRING_EXPAND, value, -1)

Or like this:
RegDBSetKeyValueEx(regPath, regName, REGDB_STRING, value, -1)

You have to use REGDB_STRING_EXPAND if you want to use placeholders like %bla%