Re: Mass delete files and directories
- From: David Kerber <ns_dkerber@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 12 May 2008 11:42:31 -0400
In article <O$TyIasrIHA.800@xxxxxxxxxxxxxxxxxxxx>, yoohoo@xxxxxxxxxxxxxx
says...
This may sound a bit strange, but I have never had to do this before. I
am creating a program which, among other things, allows deletion of a
directory. I know that RmDir will delete an empty directory, but,
outside of finding the deepest sub-directory and deleting all the files
in it, then deleting the actual directory and working my back up, is
there another way to do this? I have some old routines that did this,
but I find that they are way too slow.
A user may have as much as several gigs of files (this is a virtual
simulator) in hundreds of sub-directories so this could take aeon's to
complete the task. I've looked several places and am familiar woth API
calls, but have found nothing that helps me much.
Using VB6, with SP6.
If you know this is running on XP or later, the DEL command has a /S
switch to delete subdirs as well.
--
Remove the ns_ from if replying by e-mail (but keep posts in the
newsgroups if possible).
.
- References:
- Mass delete files and directories
- From: Grand_Poobah
- Mass delete files and directories
- Prev by Date: Re: Timing
- Next by Date: Re: SQL Statement
- Previous by thread: Re: Mass delete files and directories
- Next by thread: Capacity of a listbox (in Excel 2007 VBA)
- Index(es):
Relevant Pages
|