Thanks Charles, that worked perfectly. Good site for other things too!
Giles.
On 15 Jun 2006, at 20:17, Charles Yeomans wrote:
<http://www.declaresub.com/Articles/HowDoI.html#deleteFolder>
Charles Yeomans
On Jun 15, 2006, at 3:14 PM, Giles Williams wrote:
I am confused.
Can you give an example of this and how it would work? I do not
see how that would look inside the folder and loop through the
files inside.
Giles.
On 15 Jun 2006, at 20:10, Seth Duke wrote:
On 6/15/06 3:04 PM, "Giles Williams" <[EMAIL PROTECTED]>
wrote:
Is there an easy way to programmatically delete all of the files
in a
folder?
Yes.
You need to set up your delete function to be recursive.
Setup a function to accept a base directory and loop through each
BaseDir.item(x). If item(x) is a file, delete it. If item(x) is a
directory,
recall the function with the new base directory.
-Seth
_______________________________________________
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>