Jump to content

use system environment variable in autoit script?


Recommended Posts


Hello,

If you want to use %system drive%:

Run(@comspec & " /c %systemdrive%\abc.exe", "", @SW_HIDE)

Or AutoIT -directory macros:

Run("@HomeDrive\abc.exe")

You can find the frst one in "autoit help - process management -" and the second one in "... - macro reference - directory macros",

MMainio

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

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