View Single Post
Old 18th April 2003, 00:08   #8
GGamer
Junior Member
 
Join Date: Apr 2003
Posts: 2
Question

Kichik,

I have looked at your zip file and the archive example on sourgefourge. It is almost exactly what I am looking for. In both cases you change HKLU\Enviorment Path Key (which is for the logedon user). But in my case I want to append the path for all the users, HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\ Path key (As far as I know this is the right key). I have modified your code to change this key instead. It does append the path, but it seems to fix the %SystemRoot% to a string instead of a variable, eg (in dos)

Before addation:

path=c:\winnt\system\;c:\winnt\

After addition of c:\foo
path=%SystemRoot%;%SystemRoot%\system;c:\foo

Do you have any suggestions?

Thanks,

Ross
GGamer is offline   Reply With Quote