Solved

Batch file to delete all MP3s from sub directories-

Posted on 2007-03-28
2
1,154 Views
Last Modified: 2007-03-28
I need a Batch file to delete all mp3 files from all sub folders under c:\homedir\ but retain directory structure.
Students download mp3's during the day, and I would like to have a script to automatically delete all of the mp3, exe, or zip files that they shouldn't be downloading anyway-
I guess this could also be writtin in vbs but I prefer batch- Can anyone help me with this?

Also I will be running this directly from the storage server so that it can run quickly at night. This will probably deter a lot of them from moving music to my storage server-

Thanks!!
-Charlie
0
Comment
Question by:Boomer7638
2 Comments
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 18810870
del /s C:\homedir\*.mp3
0
 

Author Comment

by:Boomer7638
ID: 18811821
You make it sound soo easy- Thanks for the quick reply- I may just run this twice a day and push the output to a text file named date/time.log so I will know which files were deleted (and which students are doing things they shouldn't be).

I guess that's what I get for not even looking first huh- Thanks again!
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

When you receive another warning that your shared drive is almost full and you have asked your users to clean out old files again and again, here is a single command that may help. This command will place all the files that have not been used rec…
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now