i make a new program , and i make to it special exitintion ".enc" ,and i want to integrate the program with thier files ,
i want the files that has this exitintion to openwith the program ,
and how i can make the program get the path of the file that open with it
thanks
Mohammed
Loading
mohammed mahmoudPosted Sep 10, 2009, 8:25 PM
i want to register this files by code , not to use open with dialoge
thanks
Danatas GerviPosted Sep 8, 2009, 12:17 PM
You should once double-click on your file and in windows "file open" dialog select "Open with" – and point to your program. Check the checkbox "Always use this program" – so your program will be registered for such extensions.
And, your program will receive the file part in parameters args:
static void Main(params string [] args)
So you can use it for real file loading and displaying or something else.