05-06-2008 04:07 PM - edited 05-06-2008 04:08 PM
Yes above is the only safe way!
@jarrod S. wrote:
You'll have to call a win32 API function to get this information. Here's an example in LV85.
And I've reattached an example saved in LV80.
Message Edited by Jarrod S. on 05-06-2008 11:54 AM
05-08-2008 02:27 PM
So in the end, the dumb work-around I started with doesn't work...
It works great on my development desktop, but in distributed applications the "Current VI's Path" returns both the name of the vi and the name of the executable in the path so to make it work in an .exe I'd have to strip it twice, which would cause, of course, a short path when just executing the vi.
Moving to the "right" solution now.
Jesse
05-08-2008 02:52 PM
This is by design. See here and here.
It works great on my development desktop, but in distributed applications the "Current VI's Path" returns both the name of the vi and the name of the executable in the path so to make it work in an .exe I'd have to strip it twice, which would cause, of course, a short path when just executing the vi.