Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deltree
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00158397
Message ID:
00158834
Vues:
11
>Has anyone written a function to do this?
>

I haven't seen one if VFP; I've written code to recurse a directory structure to pick up files and subdirectories, and then deleted/RMDIR'd in reverse to do something like this. You'll need to make API calls to remove file attributes as needed.

An easier solution would be to install the Windows Scripting Host (it's already a part of Win98 and NT's Option pack 4, and can be added via a standalone runtime distribution module available from Microsoft's web site.) WSH includes the Scripting.FileSystemObject automation object; the DeleteFolder method behaves exactly as you'd want it to.

>Thanks
>Wayne
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
Répondre
Fil
Voir

Click here to load this message in the networking platform