Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
IE Object
Message
From
11/02/2000 11:08:47
 
 
To
11/02/2000 10:52:18
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Title:
Miscellaneous
Thread ID:
00329319
Message ID:
00330729
Views:
22
>Hi Ed
>
>I knew about the special folder's collection, but I don not think you can set a path to this folder, to retrieve the files you want.
> As it is a systems folder, that is why I used the getfolder command
>
Try:
oWshShell=crea('wscript.shell')
oFSO=crea('scripting.filesystemobject')
oFavs=oFSO.getfolder(oWshShell.specialfolders('favorites'))
for each file in oFavs.files
   ? file.path
endfor
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