OiMunk Posted February 10, 2008 Share Posted February 10, 2008 (edited) When I try this line ShellExecute("C:\RunTest.au3","","open") it opens the Scite Editor, instead of running the script like I want it to. When I click a .au3 file manually, it always runs the script, as I specified in the installation option. Is there a different command I should be using, or is there an AutoIT setting I need to change? cheers Edited February 10, 2008 by OiMunk Link to comment Share on other sites More sharing options...
Achilles Posted February 10, 2008 Share Posted February 10, 2008 (edited) Run(@AutoItExe & ' /AutoIt3ExecuteScript ' & FileGetShortName('C:\Documents and Settings\' & @username & '\Desktop\some.au3'))It doesn't look like you can have spaces in the file name part so that's why I used the FileGetShortName... Edit: I think this would work the same with shellexecute but I haven't tried it... Edited February 10, 2008 by Piano_Man My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list] Link to comment Share on other sites More sharing options...
OiMunk Posted February 10, 2008 Author Share Posted February 10, 2008 Works perfect, thanks! Link to comment Share on other sites More sharing options...
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