Jump to content

Recommended Posts

Posted

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()
Posted (edited)

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

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
  • Recently Browsing   0 members

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