Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting a Folder
Message
From
05/04/2004 06:32:46
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00892135
Message ID:
00892197
Views:
22
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform