Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADIR() returns ALLCAPS filename, but we need mixed case
Message
From
11/05/2000 18:39:52
 
 
To
11/05/2000 17:51:33
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00368834
Message ID:
00368859
Views:
14
>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.
>

The WSH's Scripting.FileSystemObject can do this; you instantiate it, do a GetFolder, and enumerate the files in the folder. It does not directly support wildcarding; you have to run through the Files or Folders collection yourself.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform