Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need help with ADIR command
Message
De
16/11/1999 19:05:02
 
 
À
16/11/1999 18:52:28
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00291643
Message ID:
00291721
Vues:
22
>>>>Another option is to use the Scripting.FileSystem option to open a Folder object, and then access the subfolders and files collections of the Folder object.
>>>
>>>Or create your own FileSystem objects ;-)
>>
>>Why bother - Scripting.FileSystemObject is built into the freely-redistributable WSH, and adds a ton of functionality!
>
>Ed,
>
>Can you explain what "Scripting.FileSystem" is. First time I hear of the concept.
>

The Scripting.FileSystemObject is an ActiveX component, part of the Windows Scripting Host. It makes a great deal of functionality regarding file systems available through an ActiveX interface. In order to use it, you'll need to install the WSH on all target systems (something I do now as a routine part of my installs) - the WSH is incorporated into Win98 and Win2K, and can be added to Win95 (requires either OSR2 or some patches that can be downloaded from Microsoft to install) and Win95 (NT SP3 or later). It's instlaled as a part of IE 4 or 5, and a downloadable, redistributable self-installing executable can be downloaded from msdn.microsoft.com/scripting

The full documentation for Scripting.FileSystemObject is found in VBSCRIPT5.CHM, with the remainder of the WSH in WSH.CHM, both part of the MSDN library. See my FAQ entry on how to get an MSDN Library subscription if you do not have one now.

If you look back over the past week, I posted some code that used Scrupting.FileSystemObject to recursively traverse a directory hierarchy. That might give you some idea of what it's designed to do.
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform