fso.deletefolder and recycle bin

  • Thread starter Thread starter mmalinsky
  • Start date Start date
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.
 
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'?
 
Neither of these methods work. I believe this is due to some of the
files being read-only. Any other suggestions?

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

Thanks.
 
Back
Top