Jump to content

Recommended Posts

Posted

I am having problems with the AutoIt Run command in Windows 7.

I have found several exe files that I can not launch using

AutoIt's run command.

;This works
Run (@ComSpec & '  /c "scite4autoit3.exe"', "", @SW_HIDE)
Run (@ComSpec & '  /c "ypops-win-0.9.7.3.exe"', "", @SW_HIDE)
Run (@ComSpec & '  /c "autoit-v3-setup.exe"', "", @SW_HIDE)



; This does not work
Run ("scite4autoit3.exe")
Run ("ypops-win-0.9.7.3.exe")
Run ("autoit-v3-setup.exe")


; This works also
ShellExecute ("scite4autoit3.exe")
ShellExecute ("ypops-win-0.9.7.3.exe")
ShellExecute ("autoit-v3-setup.exe")

I have to either include the @ComSpec or use ShellExecute. This is not

the case under Windows XP. The permissions are set the same for all

the programs. Has anyone else had a similar issue or know how to

correct this? I don't really want to use @ComSpec or ShellExecute for

various reasons.

Thanks for any help you may be able to provide.

Posted

By the way, I forgot to mention that of the three exe

files, ypops-win-0.9.7.3.exe works in all three scenarios.

The other two only work if I use @ComSpec or ShellExecute.

The three files I have mentioned were only for demonstration

purposes. I used them because two of the three work. I have

MANY more that I have found that do not work.

Sorry about that. I guess that would have been good information

to have.

Posted

  On 4/20/2010 at 7:04 PM, 'Jos said:

Both installers from this forum need Admin level access. Is that the same for the other exe?

That was my thought also but I turned off UAC in Windows 7 and am still having the

problem. I am logged on as a user with admin rights also.

  • Developers
Posted (edited)

Are you running from SciTE with F5?

When I tried it and has SciTE started normally it indeed does "nothing".

When I started SciTE in Admin mode and pressed run things worked fine.

After that changed the script to"

#RequireAdmin
Run ("scite4autoit3.exe")

Which worked in both modes.

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

Posted

  On 4/20/2010 at 7:17 PM, 'Jos said:

Are you running from SciTE with F5?

When I tried it and has SciTE started normally it indeed does "nothing".

When I started SciTE in Admin mode and pressed run things worked fine.

After that changed the script to"

#RequireAdmin
Run ("scite4autoit3.exe")

Which worked in both modes.

Jos

The #RequireAdmin did work. Thanks.

I must have missed the addition of #RequireAdmin somewhere along the line.

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