Sign in to follow this  
Followers 0
OiMunk

Newb Question: ShellExecute with .au3 files

3 posts in this topic

#1 ·  Posted (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 by OiMunk

Share this post


Link to post
Share on other sites



#2 ·  Posted (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 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

Works perfect, thanks!

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