"Dany Allard" <[EMAIL PROTECTED]> wrote: � >Is it possible to associate a type of file, like *.txt with Notepad.exe, >with a LV7 app. >I know that LV7 have a new feature that permit to retrieve the command line >used to call the app. >But I don�t think that would be useful for what I want to do. >I want to Double-Click on my file and my LV7 app start automatically and the >file is read and displayed. � You will need the command line too! But first you need to go into the registry and create the according keys to associate your file ending with your application. Looking in the registry how things are done for instance for .vi files should give you enough of an idea.
In the ROOT key you have a key .vi with its value set to some sort of name in this case LabVIEWInstrument. Under the same root group you get another group with that LabVIEWInstrument name and some groups and keys in there. The important one is shell/open/command whose value is the path to your executable and then "%1" as parameter to tell the Windows shell to insert the file name the user has clicked on at this place. Then read the command line in your application and do what you need to do with it. Rolf Kalbermatter CIT Engineering Nederland BV tel: +31 (070) 415 9190 Treubstraat 7H fax: +31 (070) 415 9191 2288 EG Rijswijk http://www.citengineering.com Netherlands mailto:[EMAIL PROTECTED]
