Jump to content

Recommended Posts

Posted

When I use Opt("RunErrorsFatal", 0) with the new version of autoit it gives me a -1 error in the old verisons it worked fine. Also is anyone having problems with @HomeDrive not pointing to the C:\

Run("Connections.exe", @HomeDrive, @SW_HIDE)

Cheers

Posted

The Opt() of "RunErrorsFatal" has been made obsolete in the latest beta of AutoIt.

@HomeDrive is the drive where the @HomePath exists. The @HomeDrive can be different from the %SystemDrive%. If you want the %SystemDrive%, then use the below code.

Global Const $SYSTEMDRIVE = EnvGet('SYSTEMDRIVE')
MsgBox(0x40000, 'SystemDrive', $SYSTEMDRIVE)

:D

  • 3 weeks later...

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