LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Showing abbreviated path for long paths

I need to show abbreviated path in my control, after the user selects a
file, as the path name can be longer than what I can display. I know there
is some API to do that. Does anyone remember?


vishi
0 Kudos
Message 1 of 3
(2,725 Views)
Hello

Try GetShortPathName()

Thanks

Bilal Durrani
NI
Bilal Durrani
NI
0 Kudos
Message 2 of 3
(2,725 Views)
GetShortPathName() takes a long filename and converts it to the DOS 8.3 format. E.g. "My Long FileName.doc" becomes "MYLONG~1.DOC".
0 Kudos
Message 3 of 3
(2,725 Views)