LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Open executable [.exe] vi at windows with specific file

Hello!

I would like to know how to open executable vi, made with Application
Builder, at windows [Win 2000] if I have file with specific extension [let's
say ].
I have seen some article at NI Developer Zone but I cat find that now.

regards
Zbigniew StS
0 Kudos
Message 1 of 6
(3,508 Views)
There is an article on how to do handle custom file types here: http://openg.org/tiki/tiki-index.php?page=File+Handling+Guidelines

This method makes use of a VBScript to invoke a LabVIEW ActiveX server. It will work with a build LabVIEW App if you enable the App's ActiveX server in the build file.

Good luck,

-Jim
0 Kudos
Message 2 of 6
(3,508 Views)
Hi,

You have to assosiate the file extension to the application. This can be
done in windows explorer (and perhaps through the registry, somehow).

If the executable opens, you have to get the command line to see if a file
was used to open the application. This is the hard part.

Regards,

Wiebe.

"Zbigniew StS" wrote in message
news:bkn0pk$5sf$1@galaxy.uci.agh.edu.pl...
> Hello!
>
> I would like to know how to open executable vi, made with Application
> Builder, at windows [Win 2000] if I have file with specific extension
[let's
> say ].
> I have seen some article at NI Developer Zone but I cat find that now.
>
> regards
> Zbigniew StS
>
>
0 Kudos
Message 3 of 6
(3,508 Views)
Yes you can get the command-line args, but this only works when first launching the application. It will not work if the application is already running. For this, you need to message into the running application using some other mechanism. Most apps use DDE for this.

Here is a utility that will allow you to get the command-line arguments using a WinAPI call:
http://www.openg.org/tiki/tiki-index.php?page=Command Line Arguments

Also, if you are using LabVIEW 7.0 you can get the command-line arg's using the VI Server property "App::Command Line Arguments".

-Jim
0 Kudos
Message 4 of 6
(3,508 Views)
0 Kudos
Message 5 of 6
(3,508 Views)
Uzytkownik "Jim Kring" napisal w wiadomosci
news:50650000000500000046240100-1042324653000@exchange.ni.com...
> Yes you can get the command-line args, but this only works when first
> launching the application. It will not work if the application is
> already running. For this, you need to message into the running
> application using some other mechanism. Most apps use DDE for this.
>
Yes, right. I've thought about this situations:
1. I have vi application in "exe format"
2. I would like open and run this application by clicking on the specific
file with user-defined extension. File consist data for "exe-application"

I've seen article at Dev. Zone: rules about develop the Vi and specific
records in windows registers.

best regards
Zb
igniew StS
0 Kudos
Message 6 of 6
(3,508 Views)