
Getting DOS 8.3 path from Windows long file name
Hi,
This is Not recommended
What if you have
\Microsoft Fantastic Program
\Microsoft Not so Fantastic Program
Better to use the API call .. ;-)
Quote:
> >I need to convert a Windows long filename to the 16 short version? Is
> there
> >a way to do this from VBA.
> >Ex.
> >c:\data drive\my access files\file.mdb
> >to
> >c:\data~1\my~2\file.mdb
> Hi Shawn,
> to convert a long filename to a 8.3 one, you do the following
> Take the first 6 characters (no spaces) add a ~ and then 1 for the first
> one, 2 for the second etc
> For example:
> 'long filename one.txt' --> longfi~1.txt
> 'long fil two.txt' --> longfi~2.txt
> 'Long fileo.txt' --> longfi~3.txt
> 'long fal.txt' --> longfa~1.txt
> HTH
--
Regards
Pieter Wijnen
http://www.thuleeng.com
Tough guys don't take backup - tough guys cry a lot..
Good site to look for Access answers is Dev's site:
http://home.att.net/~dashish
Also The Paradox Access Website:
http://www.pcltd.co.uk/access/