LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Listing files in a LV exe (8.2)

Is there any way to retrive the list of files contained within a LV exe from LV
 
Previously you could do a 'dir list' but now it throws 'not a resource file error 13'
 
The reason why is involved, let's just say it needs to happen.
 
Any ideas??
0 Kudos
Message 1 of 6
(3,310 Views)

With the change in the EXE format, the obvious solution which pops to mind is to use an LLB. Obviously not as convenient as an EXE, but I assume the 8.2 builder should still be able to build these relatively easy.

Another (ugly) solution would be to try and get the paths of the VIs in memory and check which are inside the EXE. This is a problem because dynamic VIs would not be in memory and so you might not get a complete listing.


___________________
Try to take over the world!
0 Kudos
Message 2 of 6
(3,301 Views)

LLB is not an option since it is a deployed executable, and the dirty way does not work as a solution either for that exact reason you stated.

Any other takers??

NI Guys: Is there a method or property in the works to resolve this problem??

~,~ The Captain was here

0 Kudos
Message 3 of 6
(3,296 Views)


@NJKirchner wrote:

LLB is not an option since it is a deployed executable


Why isn't this an option?

Previous LV versions had the option of building a small EXE with a support LLB and I assume 8.2 still allows this, or at least the OpenG builder.

Granted, this means that you get 2 files, but it's still doable.


___________________
Try to take over the world!
0 Kudos
Message 4 of 6
(3,290 Views)
I miss took you saying use an LLB to mean, just don't use and exe and use an llb w/ a top level that auto starts. That may work, but doesn't exactly resolve the issue. Also I've never used the exe+llb solution so I'm unaware of any problems or gotchas using it.
 
-norm
0 Kudos
Message 5 of 6
(3,285 Views)
I haven't used it either, so I can't help you there.

___________________
Try to take over the world!
0 Kudos
Message 6 of 6
(3,277 Views)