Jump to content
Sign in to follow this  
WeMartiansAreFriendly

env variables

Recommended Posts

WeMartiansAreFriendly

Hi, I was wondering if it was possible to adjust env. variables by setting the variable.. e.g. Change @windowsdir to F:\files\test\ via a batch script, I know you can do this in autoit, but I was wondering how to get autoit to catch the change to the variable made by that batch script.. @WindowsDir Should = F:\files\test\ when launched from the batch script. Or did I miss something, maybe the batch is not correct :).

heres the test script

MsgBox(0,'',@WindowsDir)

heres the batch script

@cls
set windir=F:\files\test\
start a.exe
echo 'windir' certainly is... %windir%
@pause

Don't bother, It's inside your monitor!------GUISetOnEvent should behave more like HotKeySet()

Share this post


Link to post
Share on other sites
evilertoaster

When you set an env variable it only stays set while the application that set it is running.

(See the documentation on envset, it holds true for other applications as well)

Edited by evilertoaster

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  

×