kristoff Posted October 13, 2006 Posted October 13, 2006 Hi I tried to change the TEMP ( which pointing to %userprofile%\temp ) and enforce it to point it to %systemdrive%. cause my application generate NTVDM error while temp is point ing to this location I played with envget, envset...then display the TEMP value ( @TempDir )...value appeared not changed. I tried tio changed it also through cmd line " runwait (@comspec & " /c setup TEMP="%systemdrive%\temp") and then tried to display it to check if it change was ok....no way Does someone experience this issue too, or does I missed something ? TIA & cheers
MHz Posted October 13, 2006 Posted October 13, 2006 Environmental variable change with EnvSet Opt('ExpandEnvStrings', 1) MsgBox(0, 'Original', '%temp%') EnvSet('temp', 'c:\tempnew') MsgBox(0, 'Changed', '%temp%') I know of no method to reset info in a macro like @TempDir which is a shame under certain conditions like you can do with environmental variables.
kristoff Posted October 13, 2006 Author Posted October 13, 2006 Thanks MHz Works like a charm.. Think I missed this : Opt('ExpandEnvStrings', 1) Not indicated in the Doc :"> ...at least... didn't see it
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