Jump to content

Recommended Posts

Posted

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

Posted

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)

 

Posted
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

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
×
×
  • Create New...