Jump to content

Recommended Posts


Posted

Actually :(

C:\ = @HomeDrive

C:\Windows = @WindowsDir

C:\Windows\System or C:\Windows\System32 = @SystemDir

There is a huge list of them in the help file...look under "Macro Reference"

Any ways your sample code would look like so:

Run( @HomeDrive & "\ABC\abc.exe" )

Posted

this isn't a help for the autoit script but to left it clear just open your command prompt (cmd.exe from run dialog for example) and then type "SET" without quotes to see the variables available.

note: some of them like %APPDATA% won't be available until windows is fully installed so don't use them on cmdlines.

Posted

you can use standard autoit variables when windows has already set up...

however, during windows installation, you cannot use autoit built-in variables (like @HOMEDRIVE, etc...), but you're only restricted to declare variables.. like:

$sysdrive=EnvGet("SystemDrive")
..
...
....
RegWrite($Key&"\001", "", "REG_SZ","Preparing Installation...")
RegWrite($Key&"\001", "1", "REG_SZ",$sysdrive&"\Others\prepare.exe")

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...