system registry

system registry

mike2334
Enthusiast Enthusiast
893 Views
3 Replies
Message 1 of 4

system registry

mike2334
Enthusiast
Enthusiast

When I use setenv where in the system registry is it save? Or I'm look in the wrong place.

Michael Fyfe
894 Views
3 Replies
Replies (3)
Message 2 of 4

Anonymous
Not applicable

try Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment

Message 3 of 4

john.uhden
Mentor
Mentor

Try these:

   (defun @setenv (Key Value / Path)
      (setq Path
         (strcat "HKEY_CURRENT_USER\\" (vlax-product-key) "\\FixedProfile\\General")
      )
      (if Value
         (vl-registry-write Path Key Value)
         (vl-registry-delete Path Key) ; added 12-17-01
      )
   )
   (defun @getenv (Key / Path)
      (setq Path
         (strcat "HKEY_CURRENT_USER\\" (vlax-product-key) "\\FixedProfile\\General")
      )
      (vl-registry-read Path Key)
   )

John F. Uhden

Message 4 of 4

ronjonp
Mentor
Mentor

@mike2334 

Quick test here on Vanilla 2021:

Computer\HKEY_USERS\S-1-5-21-1809253830-3232121265-1379586990-1106\Software\Autodesk\AutoCAD\R24.0\ACAD-4101:409\FixedProfile\General

I think it used to save here:

Computer\HKEY_CURRENT_USER\Software\Autodesk\AutoCAD\R24.0\ACAD-4101:409\Profiles\<<Unnamed Profile>>\General or (General Configuration)