Emptying directories

H

howard

What's an easy way to empty directories and subdirectories without removing
the directories?
 
R

R. C. White

Hi, Howard.

Well, there's always the good old DOS command: del <foldername>\*.*

RC
 
H

Howard Brazee

Well, there's always the good old DOS command: del <foldername>\*.*

That will do the directory, but not subdirectories. I once had a SWEEP
command that would work back in the DOS era, I wonder if I can find it or if it
works with modern file names.
 
R

R. C. White

Hi, Howard.

Sorry, I should have said: del <foldername>\*.* /s

The /s switch should "Delete specified files from all subdirectories." As
usual in the "DOS" window, you can type the command followed by /? to see a
mini-help file showing all the switches and parameters available with that
command.

RC
 
H

Howard Brazee

Sorry, I should have said: del <foldername>\*.* /s

The /s switch should "Delete specified files from all subdirectories." As
usual in the "DOS" window, you can type the command followed by /? to see a
mini-help file showing all the switches and parameters available with that
command.

I wonder why my news reader has trouble replying to your messages directly. I
have to enter the newsgroup, it doesn't happen with other users on this
newsgroup.

That works, I can do del *.* /s/q

The /q is a good idea for this particular purpose, so I don't have to have a
bunch of Are You Sure? at each subdirectory.
 
R

R. C. White

Hi, Howard.

Thanks for the report of success. It's nice to know when my suggestion
works. ;<) And it might help the next person with a similar problem.

I'm not sure what you mean by replying to my messages "directly". As you
probably know, posting back to the newsgroup is much-preferred to email.
This way, others might benefit from our discussion; in email, only the two
of us would know about it. And, if I give you wrong or incomplete advice
here, others can correct it or expand on it; if I give you bad advice in
email, you're just stuck with it. So Netiquette frowns on email responses
to newsgroup posts unless email is specifically invited or the subject veers
from the topic of the newsgroup.

RC
 
H

howard

I'm not sure what you mean by replying to my messages "directly". As you
probably know, posting back to the newsgroup is much-preferred to email.
This way, others might benefit from our discussion; in email, only the two

of us would know about it. And, if I give you wrong or incomplete advice
here, others can correct it or expand on it; if I give you bad advice in
email, you're just stuck with it. So Netiquette frowns on email responses

to newsgroup posts unless email is specifically invited or the subject
veers
from the topic of the newsgroup.

I am using NewsRover. When I hit "reply to newsgroup", it usually works
fine. Occasionally I'll hit this and it doesn't find the newsgroup. It
seems to be confused only with particular people. I suspect you might use
a newsreader that does things slightly different from what NewsRover
expects, although it might be your ISP that is different.
 

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