Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a Folder() command
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00545958
Message ID:
00546000
Views:
13
>Ed, As a follow up to this, (I haved used Directory() many times.)
>
>But got me to thinking.
>is there a way to access the 'My Documents' Folder which is a system folder? I cant seem to figure out the syntax.
>

Yes, but not with just VFP. You can use either the SpecialFolders collection of the Wscript.Shell object, as was covered in the VFUG articles that covered the WSH (or any of the WSH links in my .sig block) or one of a number of API calls such as SHGetFolderPath() we've documented in the Windows API section.

>Thanks
>Bob Lee
>
>
>>>The File() command returns .T. if a particular file is on disk.
>>>Is there a similar Folder() command which will return a .t. or .f. if a specific folder exists ...to be used as follows:
>>>? Folder('f:\Myfolder1\Myapps') Return .t. if the folder exists
>>
>>Try DIRECTORY()
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