LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

read file properties

How do I read the revision (or anyother property) of a program with labview? Can it be done or do I need to get API/DLL to do it for me.... if so would you know of any that would suit?

Thanks
0 Kudos
Message 1 of 4
(3,626 Views)
If you want to read the revision of a LabView VI, you can use some functions from the Application Control function palette.
Open VI Reference has an input for the VI path. Its output is a VI reference. Wire that reference to a property node (also on the Application Control palette). Right-click on the property node and select Properties >> History >> Revision Number. Browse the other properties for anything else of interest. Call Close LV Object Reference (from the Application Control palette) when you're done.
0 Kudos
Message 2 of 4
(3,626 Views)
Sorry I should have made it a little bit more clear, this would be to read the rev of an EXE type file using labview. I would like write a program to compare the revisions of programs (with same file name and size) in different folders
0 Kudos
Message 3 of 4
(3,626 Views)
Sorry:
I think then you'll need to make an API call to GetFileVersionInfo. Here's a link with C code.
http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=135&HOID=50650000000800000073760000&UCATEGORY_0=_318_&UCATEGORY_S=0&USEARCHCONTEXT_QUESTION_0=getfileversion&USEARCHCONTEXT_QUESTION_S=0
You could look at trying to use a Call Library Function Node in LabView to directly call functions in c:\winnt\system32\version.dll or c:\windows\system32\version.dll or wherever version.dll is on your system.
I haven't figured those functions out yet, but you might be able to.
0 Kudos
Message 4 of 4
(3,626 Views)