Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting a Folder
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Deleting a Folder
Divers
Thread ID:
00892135
Message ID:
00892135
Vues:
51
This will remove the folder ..\e\ folder and anything in it
oFSO = CREATEOBJECT( "Scripting.FileSystemObject" )
oFSO.DeleteFolder( "c:\e" ) && no wildcards removes \e folder

But what if I want to leave the \e folder but remove any files or subfolders in it? But
this doesn't do anything, even though added wildcards??
oFSO = CREATEOBJECT( "Scripting.FileSystemObject" )
oFSO.DeleteFolder( "c:\e\*.*" ) && <---------------added wildcards

Thanks
STeve
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform