Sign in to follow this  
Followers 0
kristoff

OS Temp value

3 posts in this topic

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 :lmao:

Does someone experience this issue too, or does I missed something ?

TIA & cheers

Share this post


Link to post
Share on other sites



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.

:lmao:

Share this post


Link to post
Share on other sites

Thanks MHz

Works like a charm..

Think I missed this : Opt('ExpandEnvStrings', 1)

Not indicated in the Doc :"> ...at least... didn't see it

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0