Community
AutoCAD LT Forum
Welcome to Autodesk’s AutoCAD LT Forums. Share your knowledge, ask questions, and explore popular AutoCAD LT topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Set Registry Key from Script

2 REPLIES 2
Reply
Message 1 of 3
Anonymous
389 Views, 2 Replies

Set Registry Key from Script

I'd be really gratefull if someone could help me with this please. I need to change the following registry key programmatically and add it as part of a script routine:
 
HKEY_CURRENT_USER\Software\PlotSoft\Writer\PDF_ROTATECROP\Rotate_Degree and set it to a value of 10e as a Hexadecimal.
 
I have attempted this using the setenv command but cannot get the setting to take - this is the script I'm using:
 
setenv
HKEY_CURRENT_USER\Software\PlotSoft\Writer\PDF_ROTATECROP\Rotate_Degree
10e
 
I've tried all sorts of various configurations of this but can't get the variable to change.
 
Would anyone have any ideas?
 
Many thanks in advance.
2 REPLIES 2
Message 2 of 3
pendean
in reply to: Anonymous

SETENV will not do that I believe.

Message 3 of 3
steven-g
in reply to: Anonymous

AFAIK you cannot change the location that autocad uses to store the value you create with setenv. I would personally look into using a windows VBSscript to do something like that especially as it looks to be accessing values from another program anyway.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost