How can i truncate long file name to get dos file name 
Author Message
 How can i truncate long file name to get dos file name

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.

Please answer me A.S.A.P thanks Jos




Mon, 27 Dec 1999 03:00:00 GMT  
 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



Fri, 31 Dec 1999 03:00:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Api function to convert Long File Names To Short Dos File Names

2. Getting short file name from long file name:

3. Getting DOS 8.3 path from Windows long file name

4. Can't Get full File name for Long file names

5. Get long file name from short file name

6. 8.3 file name to Long file name

7. Long File Names and Short File Names

8. Get Short File Name from Long File Name?

9. Long file names to 8.3 File names convertion

10. Long file names to short file name

11. Converting Long File Names to Short File Names

12. long file names to short file name

 

 
Powered by phpBB® Forum Software