LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

MAX_PATH shorter in labview than in windows

I ran into a bizarre problem with super long file paths and I think I finally identified it as a bug in LabVIEW (LV 2013).  My users sometimes create large file trees with descriptive folder names to keep track of their projects.  Files are generated by a non LV application.   I had a case where a user would select a file using a LV file dialog (express vi) but the path that was returned truncated the file extension which caused problems.  It appears that MAX_PATH in Windows OS (win 7) is considered 260 characters which includes the drive letter and null character at the end; so really its 259 characters for an absolute path.  However the LV file dialog cut things off after 255 characters.  This small disparity is just enought to cut off the extension on file paths allowed by Windows.  Just thought I'd mention it in case anybody else ever runs into this one.

Message 1 of 5
(3,109 Views)

Thanks Hoovah


"Should be" isn't "Is" -Jay
0 Kudos
Message 3 of 5
(3,048 Views)
blame it on the phone

"Should be" isn't "Is" -Jay
0 Kudos
Message 5 of 5
(2,999 Views)