B
bart.hernalsteen
Hi,
I want to read the envorinment setting "path" and then on certain
conditions change this setting.
ex path : "%SystemRoot%\system32;%SystemRoot%;%SystemRoot%
\System32\Wbem;C:\Program Files\Symantec\pcAnywhere\;"
I want to add some folders to the path and delete some.
But when i read the path all the system variables "ex. "%SystemRoot%\"
are converted to the exact folder
I store this in a string and change the string an then write to string
to the registry.
But i lose the "%SystemRoot%" variables in my path.
The registry key is a REG_EXPAND_SZ key
readValue = My.Computer.Registry.GetValue _
("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\Environment", "Path", Nothing)
Some advice ?
I want to read the envorinment setting "path" and then on certain
conditions change this setting.
ex path : "%SystemRoot%\system32;%SystemRoot%;%SystemRoot%
\System32\Wbem;C:\Program Files\Symantec\pcAnywhere\;"
I want to add some folders to the path and delete some.
But when i read the path all the system variables "ex. "%SystemRoot%\"
are converted to the exact folder
I store this in a string and change the string an then write to string
to the registry.
But i lose the "%SystemRoot%" variables in my path.
The registry key is a REG_EXPAND_SZ key
readValue = My.Computer.Registry.GetValue _
("HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session
Manager\Environment", "Path", Nothing)
Some advice ?