random8011 Posted August 5, 2004 Share Posted August 5, 2004 the reg valuename and value have beed existed. for example.. [HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Session Manager\Environment] "Path"=hex(2):63,00,3a,00,5c,00,4f,00,72,00,61,00,63,00,6c,00,65,00,5c,00,4f,\ 00,72,00,61,00,38,00,31,00,5c,00,62,00,69,00,6e,00,3b,00,25,00,53,00,79,00,\ 73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,\ 00,74,00,65,00,6d,00,33,00,32,00,3b,00,25,00,53,00,79,00,73,00,74,00,65,00,\ 6d,00,52,00,6f,00,6f,00,74,00,25,00,3b,00,25,00,53,00,79,00,73,00,74,00,65,\ 00,6d,00,52,00,6f,00,6f,00,74,00,25,00,5c,00,53,00,79,00,73,00,74,00,65,00,\ 6d,00,33,00,32,00,5c,00,57,00,62,00,65,00,6d,00,3b,00,43,00,3a,00,5c,00,43,\ 00,49,00,43,00,53,00,5c,00,42,00,49,00,4e,00,00,00 path=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem i just want to add a new path follow the old path make the path=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;c:\oracle\ora81\bin; any good ideas? thanks a lot.... Link to comment Share on other sites More sharing options...
ezzetabi Posted August 5, 2004 Share Posted August 5, 2004 $Path = RegREad("HKLM\System\ControlSet001\Control\Session Manager\Environment","Path") RegWrite("HKLM\System\ControlSet001\Control\Session Manager\Environment","Path","Reg_binary",_ $Path & "The new string of HEX values") Link to comment Share on other sites More sharing options...
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