LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Simple File Dialog Question

Using LabView 6i:

When I display the output of the File Dialog all I see is the path to the
folder containing the selected file and not the name of the selected file.
How do I get the name of the selected file?

Thanks
TP
0 Kudos
Message 1 of 4
(2,750 Views)
TP,

The output of file dialog is the complete path to the file, including all directories, and the filename (eg. C:\Windows\Temp\filename.vi) To get the filename only, strip the path off using the utility in the file operations menu.

Good luck
0 Kudos
Message 2 of 4
(2,750 Views)
TP;

Are you sure you don't get the name of the file? Make sure the path indicator in the front panel is long enough. If the path string do not fit completely in the indicator, it will look truncated.

Enrique
www.vartortech.com
0 Kudos
Message 3 of 4
(2,750 Views)
There also are good examples if you search for 'file name'...on the NI Developer Zone area of this site.
0 Kudos
Message 4 of 4
(2,750 Views)