PC Review


Reply
 
 
fering
Guest
Posts: n/a
 
      14th Jun 2004
Hi,

Is there a way to delete a full dir instead of deleteing all files inside &
then delete the dir ?
using C++ or .net

Thanks
Danny


 
Reply With Quote
 
 
 
 
Gary G. Little
Guest
Posts: n/a
 
      14th Jun 2004
From a directory path above ...

rd /s Yourdir

Hold you breath and hang on! Or use My Computer or Explorer.

--
Gary G. Little
Seagate Technologies, LLC

"fering" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> Is there a way to delete a full dir instead of deleteing all files inside

&
> then delete the dir ?
> using C++ or .net
>
> Thanks
> Danny
>
>



 
Reply With Quote
 
fering
Guest
Posts: n/a
 
      15th Jun 2004

what i ment is using code not command line
& if there is a way just to delete the dir.
For example if it was possible just to delete the dir & not also the files
inside it can save
a lot of time becasue i have dirs with millions of small files.


"Gary G. Little" <(E-Mail Removed)> wrote in message
news:Nynzc.6259$(E-Mail Removed)...
> From a directory path above ...
>
> rd /s Yourdir
>
> Hold you breath and hang on! Or use My Computer or Explorer.
>
> --
> Gary G. Little
> Seagate Technologies, LLC
>
> "fering" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > Hi,
> >
> > Is there a way to delete a full dir instead of deleteing all files

inside
> &
> > then delete the dir ?
> > using C++ or .net
> >
> > Thanks
> > Danny
> >
> >

>
>



 
Reply With Quote
 
R. C. White
Guest
Posts: n/a
 
      15th Jun 2004
Hi, Danny.

If you really delete just the directory and not the files within it, then
all the clusters those files occupy are not marked available for reuse. The
next time you run Chkdsk, you'll have TONS of lost clusters! Cleaning those
up would take a lot more time and letting rd get rid of them properly in the
first place.

RC
--
R. C. White, CPA
San Marcos, TX
(E-Mail Removed)
Microsoft Windows MVP

"fering" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
>
> what i ment is using code not command line
> & if there is a way just to delete the dir.
> For example if it was possible just to delete the dir & not also the files
> inside it can save
> a lot of time becasue i have dirs with millions of small files.
>
>
> "Gary G. Little" <(E-Mail Removed)> wrote in message
> news:Nynzc.6259$(E-Mail Removed)...
>> From a directory path above ...
>>
>> rd /s Yourdir
>>
>> Hold you breath and hang on! Or use My Computer or Explorer.
>>
>> --
>> Gary G. Little
>> Seagate Technologies, LLC
>>
>> "fering" <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed)...
>> > Hi,
>> >
>> > Is there a way to delete a full dir instead of deleteing all files

> inside
>> &
>> > then delete the dir ?
>> > using C++ or .net
>> >
>> > Thanks
>> > Danny


 
Reply With Quote
 
fering
Guest
Posts: n/a
 
      4th Aug 2004
ok thanks

"R. C. White" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi, Danny.
>
> If you really delete just the directory and not the files within it, then
> all the clusters those files occupy are not marked available for reuse.

The
> next time you run Chkdsk, you'll have TONS of lost clusters! Cleaning

those
> up would take a lot more time and letting rd get rid of them properly in

the
> first place.
>
> RC
> --
> R. C. White, CPA
> San Marcos, TX
> (E-Mail Removed)
> Microsoft Windows MVP
>
> "fering" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
> >
> > what i ment is using code not command line
> > & if there is a way just to delete the dir.
> > For example if it was possible just to delete the dir & not also the

files
> > inside it can save
> > a lot of time becasue i have dirs with millions of small files.
> >
> >
> > "Gary G. Little" <(E-Mail Removed)> wrote in message
> > news:Nynzc.6259$(E-Mail Removed)...
> >> From a directory path above ...
> >>
> >> rd /s Yourdir
> >>
> >> Hold you breath and hang on! Or use My Computer or Explorer.
> >>
> >> --
> >> Gary G. Little
> >> Seagate Technologies, LLC
> >>
> >> "fering" <(E-Mail Removed)> wrote in message
> >> news:(E-Mail Removed)...
> >> > Hi,
> >> >
> >> > Is there a way to delete a full dir instead of deleteing all files

> > inside
> >> &
> >> > then delete the dir ?
> >> > using C++ or .net
> >> >
> >> > Thanks
> >> > Danny

>



 
Reply With Quote
 
Rod Harrison
Guest
Posts: n/a
 
      13th Aug 2004
Use the previous suggestion of the command utility but put it in a
batch file. This way you can always use it in the future for the same
tree if it returns or modify the tree name in the batch script and
rerun the it to delete another tree.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete data in a linked Excel sheet using Access code or seql delete Rocky Microsoft Access External Data 9 26th Jun 2005 12:42 AM
Re: Macro to delete sheets and saves remaining file does not properly delete module gazornenplat Microsoft Excel Programming 0 22nd Jun 2005 01:12 AM
Macro to delete sheets and saves remaining file does not properly delete module pherrero Microsoft Excel Programming 7 21st Jun 2005 05:16 PM
Delete every 3rd row, then delete rows 2-7, move info f/every 2nd row up one to the end and delete the row below Annette Microsoft Excel Programming 2 21st Sep 2004 02:40 PM
Re: When I highlight a sentence to delete, Word won't let me. I have to backspace. How can I deleted selected text with my delete key? Bill Foley Microsoft Word Document Management 1 4th Feb 2004 11:06 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:23 PM.