LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to get file size date and time from a vi in an llb?

I'm looking to get the file info - size and date & time of the vi's within a library. I can get the names of the vi's using "List Directory.vi", but when I try to use "File/Directory Info" on a vi within the llb, I get Error 7 (file not found).

I am using the full path, for example:
c:\...\library.llb\file.vi
for the Path input to "File/Directory Info"
0 Kudos
Message 1 of 5
(3,217 Views)
The reason you are getting the file error (Error 7) is because the file/directory info vi is looking for a path that doesn't exist. When you specify library.llb\file.vi it thinks that there is a folder named library.llb (its not smart enough to look inside the library itself for the file). Unfortunatley, I don't know of any way to programmatically get that date/size file info from a file in a .llb.
Sorry I can't be of more help.
0 Kudos
Message 2 of 5
(3,217 Views)
Try

.\vi.lib\utility\libraryn.llb\Librarian Get Info.vi


LabVIEW, C'est LabVIEW

Message 3 of 5
(3,217 Views)
Thanks, that does the trick.
0 Kudos
Message 4 of 5
(3,217 Views)
Good answer. You learn something new everyday.
0 Kudos
Message 5 of 5
(3,217 Views)