Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting a Folder
Message
De
05/04/2004 06:32:46
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00892135
Message ID:
00892197
Vues:
21
>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

fso = CreateObject("Scripting.FileSystemObject")
fso.DeleteFile('c:\e\*.*')
fso.DeleteFolder('c:\e\*.*')

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform