
How can i truncate long file name to get dos file name
Quote:
> For example, what could I use to have windows tell me that
> C:\MY DOCUMENTS\CUSNUM\JANUARY97\ARCHIVE.EXE is
> C:\MYDOCU~1\CUSNUM\JANUAR~2\ARCHIVE.EXE to DOS.
I looked through the WinAPI help file I have. I remembered
a function called GetShortFileName, but I couldn't find it.
What I found instead was:
* GetShortPathName
This should work. Skimming the description, I'm not sure if
the functions handles files as well as paths.
* Interrupt 21h Function 71A8h Generate Short Name
which details using assembler to accomplish this (YUCK).
* Interrupt 21h Function 7160h Get Short Path Name
ditto.
N Varacalli
--
The views expressed herein do not represent the views of my employer.
To reach me via e-mail, try
NICHOLAS_VARACALLI at non-hp-Canada-om1.hp.com
--
The views expressed herein do not represent the views of my employer.
To reach me via e-mail, try
NICHOLAS_VARACALLI at non-hp-Canada-om1.hp.com