Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to remove an existing directory programatically?
Message
De
16/10/2002 09:33:05
 
 
À
15/10/2002 22:22:52
Henry Ravichander
RC Management Systems Inc.
Saskatchewan, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00711569
Message ID:
00711663
Vues:
18
Hi Henry.

I am attempting to first, delete an existing directory and all subfolders within that directory and then create a new directory with subdirectories where needed.

This is a piece of cake using the Windows Script Host:
oFSO = CreateObject( ‘Scripting.FileSystemObject’ )
oFSO.DeleteFolder( ‘MyFolder2Delete’, .T. )
The second parameter tells the Windows Script Host to delete folders with the read-only attribute set. But do be careful when you use this method! The folders and files are deleted without being sent to the recycle bin, so once deleted they are gone forever.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform