Probably a simple DOS question

Associate
Joined
18 Jun 2003
Posts
188
Location
Wellington, Somerset
Right....I have a structure soething like this:

d:\Users\Pupils\<name>

There are about 200 names probably and I want to delete every file/folder within each name. Basically I'm deleting all the work but don't really want to have to recreate any shares so instead of deleting the whole folder I want to just delete the stuff inside.

Now I know I can use the DEL command to delete everything but from what I can see only one folder at a time.

Is there a way to delete everything without deleting the root folders?
 
testa12 said:
just use DEL /S

edit - Sorry, I see you want to remove sub folders from each root folder. Best bet is to script it.

May just do this anyway and keep the folders.

Will look at scripts now as for some reason that jump my mind.

Will also look into xtree. Thanks
 
seems a bit overkill to script it. (...he says, while already thinking of how to do it ;) )


search root folder for *.*
select all files, press delete
select all subfolders, press delete

10 seconds, job done.

.
 
Back
Top Bottom