M
Marco Martin
Good Day Group,
I'm trying to make my application open and run some code when a user clicks
on a file with an associated extension. This is *my* understanding of what
actually happens, please correct me if I am wrong. I've searched the net,
but there doesn't seem to be much on the subject.
1) When using the DotNetPackager (called dotfuscator I believe), we can
associate files with a specific extension to a specific program. Basically
just a registry key being written. Perhaps there is a way to check this
through code and actualy write to the registry if there was a mistake?
2) when a user clicks on an associated file, its like a command line
argument i.e.: "myApp.exe" "c:\myPath\myFile.aaa".
3)In order to use the file, the Main() must accept Args. ie"static void
Main(string[] Args) at which point I can access the filename by accessing
the Args[0] of the Main and store it in a variable in my program.
Please let me know if there's anything else I should know about, or if my
understanding is erroneous.
Thanks and best regards,
Marco
I'm trying to make my application open and run some code when a user clicks
on a file with an associated extension. This is *my* understanding of what
actually happens, please correct me if I am wrong. I've searched the net,
but there doesn't seem to be much on the subject.
1) When using the DotNetPackager (called dotfuscator I believe), we can
associate files with a specific extension to a specific program. Basically
just a registry key being written. Perhaps there is a way to check this
through code and actualy write to the registry if there was a mistake?
2) when a user clicks on an associated file, its like a command line
argument i.e.: "myApp.exe" "c:\myPath\myFile.aaa".
3)In order to use the file, the Main() must accept Args. ie"static void
Main(string[] Args) at which point I can access the filename by accessing
the Args[0] of the Main and store it in a variable in my program.
Please let me know if there's anything else I should know about, or if my
understanding is erroneous.
Thanks and best regards,
Marco