Jump to content

Newb Question: ShellExecute with .au3 files


OiMunk
 Share

Recommended Posts

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 by OiMunk
Link to comment
Share on other sites

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 by Piano_Man
My Programs[list][*]Knight Media Player[*]Multiple Desktops[*]Daily Comics[*]Journal[/list]
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...