Jump to content
Sign in to follow this  

Newb Question: ShellExecute with .au3 files

Recommended Posts


When I try this line


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?


Edited by OiMunk

Share this post

Link to post
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]

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  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.