Sign in to follow this  
Followers 0
kdh1966

Run does not work correctly under Windows 7

6 posts in this topic

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.

Share this post


Link to post
Share on other sites



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.

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

#5 ·  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

Visit the SciTE4AutoIt3 Download page for the latest versions  - Beta files                                How to post scriptsource        Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
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
Sign in to follow this  
Followers 0