Ok it works, I forgot to enable, "Pass all command line arguments to
application" in Application Settings of the app builder... by the way for
what reason is it optional?

Thank you all for replies

Dany

-----Message d'origine-----
De : Dany Allard [mailto:[EMAIL PROTECTED] 
Envoyé : 11 février 2004 14:50
À : '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]'
Objet : RE : Associate a type of file with a LV7 app

I know how to associate the file, but how to retrieve the path of the
file???

Khalid,

I try the 'App.args' property and the file path is not in the second
element. I only get the name of the app at the first position of the array
and the rest is empty.

Do I have to do some DDE thing in the file association?
I tried to add "%1" at the end of the app ..\app.exe "%1" and it not work. 

Any idea???

Dany




-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la
part de [EMAIL PROTECTED]
Envoyé : 11 février 2004 11:56
À : [EMAIL PROTECTED]
Objet : RE: Associate a type of file with a LV7 app


      
Dany,

First, you associate the file with your LV7 app as usual (right-click the
file >> Open with >> Choose program >> browse and select your LV app >>
check the box 'Always use the selected program..'

Once the file association is made with your LV app, double-clicking the file
will launch your LV app and give you the file path as the second element
(index 1) of the 'App.args' array.  You can then convert this to path and
pass it to your read VI(s) in your app.  

Hope this helps.  

Khalid 



----- Forwarded by Khalid Ansari 02/11/2004 10:42 AM -----
"Dany Allard" <[EMAIL PROTECTED]>
Sent by: <[EMAIL PROTECTED]>
02/11/2004 10:06 AM
                 
To: <[EMAIL PROTECTED]>
cc: 
Subject: Associate a type of file with a LV7 app


Hi,
 
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.
 
Thanks
 
Dany Allard
[EMAIL PROTECTED]

 
 
          
          


Reply via email to