Jump to content

env variables


Recommended Posts

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()
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...