Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting all files in a folder
Message
De
21/04/2016 02:29:57
 
 
À
20/04/2016 19:12:21
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01635106
Message ID:
01635124
Vues:
76
J'aime (1)
>Is there a way to delete all files in a folder? Preferably with the user not having to confirm deletion..
>
>Many thanks!
LOCAL lcFolder AS String

m.lcFolder = "you're erasing, so it's better to put a full path in here"

SET SAFETY OFF
ERASE (ADDBS(m.lcFolder) + "*.*")
----------------------------------
António Tavares Lopes
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform