Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete a directory and all its files
Message
De
06/11/2004 23:05:20
 
 
À
06/11/2004 14:03:56
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 6
OS:
Windows '98
Database:
Visual FoxPro
Divers
Thread ID:
00958848
Message ID:
00958951
Vues:
20
>>Hi
>>
>>Is there a command to delete a Directory also if it is not empty?
>>
>>Tank you in advance for the help.
>>Luigi
>
>Another option is to use the DOS command, DELTREE.

DELTREE is not available in all DOS versions (at least my copy of XP doesn't recognize it). A DOS solution which is probably more universal is
lcDir = "Directory Name"
RUN RD &lcDir /S /Q
There may be problems with long directory name and/or those with spaces, but it should be a good substitute for DELTREE.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform