seres Posted May 1, 2016 Share Posted May 1, 2016 hello, i have been searching how to open a file with my program but i cant find anything. what i want to do is right click a file from my desktop then open with, then i choose my au3program.exe so it can work with the file i choose Link to comment Share on other sites More sharing options...
mikell Posted May 1, 2016 Share Posted May 1, 2016 There are many threads about this on the forum One way could be this : make a .reg file Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\*\shell\Open with my_au3program.exe] [HKEY_CLASSES_ROOT\*\shell\Open with my_au3program.exe\command] @="C:\\my_au3program.exe \"%1\"" and here is an example of "my_au3program.au3" to be compiled to "my_au3program.exe" $file = $CmdLine[1] msgbox(0,"", $file) Link to comment Share on other sites More sharing options...
seres Posted May 1, 2016 Author Share Posted May 1, 2016 6 hours ago, mikell said: There are many threads about this on the forum One way could be this : make a .reg file Windows Registry Editor Version 5.00 [HKEY_CLASSES_ROOT\*\shell\Open with my_au3program.exe] [HKEY_CLASSES_ROOT\*\shell\Open with my_au3program.exe\command] @="C:\\my_au3program.exe \"%1\"" and here is an example of "my_au3program.au3" to be compiled to "my_au3program.exe" $file = $CmdLine[1] msgbox(0,"", $file) thanks it worked, i didnt know what to search for, i always get results like fileopen() thanks for pointing me the way with cmd 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