fso.deletefolder and recycle bin

M

mmalinsky

I am using fso.deletefolder(directory, true) to delete a directory and
all subdirectories. This is due to not having write access to some of
the files in the directory. However, these items are sent to the
recycle bin. Is there any way to do this without sending these items
to the recycle bin without having to empty the recycle bin completely?

Thanks,
Mike.
 
H

Herfried K. Wagner [MVP]

I am using fso.deletefolder(directory, true) to delete a directory and
all subdirectories.

Why not use similar functionality from 'My.Computer.FileSystem.*' or
'System.IO.Directory'?
 
M

mmalinsky

Neither of these methods work. I believe this is due to some of the
files being read-only. Any other suggestions?

Thanks.
 
M

mmalinsky

Maybe I did it wrong, but I got the My.Computer.FileSystem option to
work.

Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top