Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I get short path name in VFP?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00711861
Message ID:
00711951
Views:
7
>Hi, George,
>
>The method you have proposed works only when the file exists. I need to convert the long file name to a short one before it is created.
>
>Thank you again,
>
Dawa,

You're exactly right. What you need is the algorithm that Windows uses to create the short file name. Unfortunately, I don't know it, nor know if there's an API function that can do it. As a result, I'd suggest creating the file first, then create the file. It would seem to be the simplest solution, but I don't know if your code can be modified to work this way.
George

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

Click here to load this message in the networking platform