Here you have batch file examples :
http://www.chebucto.ns.ca/
Main Topics
Browse All TopicsI am looking for a command syntax or utility that will delete all of the files within a folder and all of the subfolders without deleting any of the files in these folders and subfolders.
I need to be able to quickly delete all files from within a folder and from within that folder's subfolders but I need to preserve the folders (keep the folders from being deleted).
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Here you have batch file examples :
http://www.chebucto.ns.ca/
the /s switch will cause the command to run through the current folder
and all its sub folders.
del /s c:\master\*.bak
the /q switch will "quiet" the command, you will not see its actions or
verbose asking for confirmation.
del /s /q c:\master\*.bak
Use the @Echo off if you want to see none of the commands:
The batch file contains 2 simple lines and a return line at the end:
==========================
@echo off
del /s /q c:\master\*.bak
Add Empty Folder Contents To Vista Right Click Context Menu To Delete Files Without Removing Folders:
http://www.mydigitallife.i
Business Accounts
Answer for Membership
by: senadPosted on 2009-10-28 at 21:06:33ID: 25690578
http://www.experts-exchang e.com/OS/ M icrosoft_O perating_S ystems/MS_ DOS/Q_2129 7169.html