Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADIR() returns ALLCAPS filename, but we need mixed case
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00368834
Message ID:
00368984
Views:
16
>The filename returned from using the function ADIR() is in all caps. I want to save the filename returned to a VFP6 record exactly as it is capitalized in Windows Explorer. Is there a way to do this without using PROPER() since some of the words in the filename are not captialized.
>
>TIA

Rixon,

While I'd recommend (as others have) the Scripting.FileSystemObject, alternatively you could use my "Windows Filenames" which is available for download here at the UT (Win32 and Other APIs). It returns much of the same information, but does not require the WSH. While I would go with the WSH, if it were not available or could be made available, this is an alternative.
George

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

Click here to load this message in the networking platform