Is there an easy way to programmatically delete all of the files in a
folder?
On 15 Jun 2006, at 20:01, Charles Yeomans wrote:
On Jun 15, 2006, at 2:57 PM, Giles Williams wrote:
Hi.
When I launch my app, it creates a temporary folder under the
users temporary folder using the below code:
Dim Tempf As FolderItem = TemporaryFolder.Child("WeaveData")
Tempf.CreateAsFolder
When it closes, I want this folder to be deleted, so as to save
space, so thought of the following code:
Dim Tempf As FolderItem = TemporaryFolder.Child("WeaveData")
Tempf.Delete
However, this does not work. Can anybody explain why, and how to
fix it?
If Tempf contains any files, then Delete won't. You need to first
delete everything in Tempf.
Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>