I need to display a long path name, like
\\MachineName\FolderName\Sub-Folder\Sub-Folder\FileName.txt
into a small textbox, something like
\\MachineName\...\FileName.txt
The FileName.txt should be visible (I will make sure textbox is big enough
to display that). How do I do this?
I had asked this question earlier but guess I wasn't clear, so someone had
suggested GetShortPathName which only converts long path names into 8.3 DOS
format.
One way I can think of is splitting the path so I get the filename and
directory name and then do some parsing and display them but if there is
some WIN API do it, it will be good.
vishi