Jump to content

Stuck at square 1: Can't launch an executable


LMenard
 Share

Recommended Posts

Folks, I'm brand new to AutoIt.  I downloaded and installed the current version (I'm running on Windows 10 64-bit).

I ran the "notepad" tutorial no problem.  But when I change the Run() to point to any executable in the same directory as the script (including the AutoIt installer) it never launches.

Run("autoit-v3-setup.exe")

Nothing happens.

I've also tried specifying the full path:

Run("C:\Users\Me\Documents\autoit-v3-setup.exe")

No difference.

I even tried changing directory:

FileChangeDir("C:\Users\Me\Documents")

Run("autoit-v3-setup.exe")

What am I missing?

Thanks.

Edited by LMenard
Link to comment
Share on other sites

  • Developers

What returncode and errorcode are returned by run?

jos

Edited by Jos

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Link to comment
Share on other sites

Sorry, but like I said, I'm brand new to AutoIt...

How do I display the return code and error code?  I couldn't find an example of that in the Tutorials.

I added "@error" to my script and it didn't change anything.  I get no output.

I also tried adding "@exitCode" but got an error saying that was not valid.

Thanks.

Link to comment
Share on other sites

ShellExecute() didn't change anything either I'm afraid.

But... I compiled it into an exe instead of just running it, then did "Run as Administrator" on the exe and it now works.

My current account is an Administrator, so I'm not sure why I have to do this, but I'll continue digging into it.

A suggestion... a few more tutorials would be nice.

Thanks.

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