kdh1966 Posted April 20, 2010 Posted April 20, 2010 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 notthe 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 forvarious reasons.Thanks for any help you may be able to provide.
kdh1966 Posted April 20, 2010 Author Posted April 20, 2010 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.
Developers Jos Posted April 20, 2010 Developers Posted April 20, 2010 Both installers from this forum need Admin level access. Is that the same for the other exe? 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.
kdh1966 Posted April 20, 2010 Author Posted April 20, 2010 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 theproblem. I am logged on as a user with admin rights also.
Developers Jos Posted April 20, 2010 Developers Posted April 20, 2010 (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 April 20, 2010 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.
kdh1966 Posted April 20, 2010 Author Posted April 20, 2010 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now