Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Short to long filenames
Message
 
To
30/06/1999 11:45:06
Paul Frost
Instem Computer Systems Ltd
Stone, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00235902
Message ID:
00235973
Views:
23
>>Look at my Windows Filenames program in the download section (under Win32 and other APIs). It'll return the file names (long and short), plus other information. You can pass it either the short or long name.
>>
>>hth,
>
>Works better than I'd hoped for, the long filename is returned without the path which is just what I needed.

Good. If you need the path, however, you have to parse it. For example, assume the path was C:\PROGRA~1\MICROS~2\. You'd first have to pass C:\PROGRA~1\MICROS~2 and you'd get back something like Microsoft Visual Studio, then C:\PROGRA~1 to get back Program Files.

>Did you realise though, that the DOS filename returns an extra character (displayed as a square - I guess it's the trailing 0 string terminator) - No problem though, I've modified my version.

No I didn't, but you're right it is CHR(0). Thanks for the heads up. I guess I'll have to fix this.:-)

>Thanks again,
>Paul
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform