|
Answer» I work with a network of computers that are used by the public and constantly have a problem with mp3's being stored on the machines. I am not allowed to have these file TYPES on the network and wondered if it was POSSIBLE to write a batch file that i can run once a week to delete *.mp3??? Im using windows xp.You can use the /s switch with the DEL command to cleanup a single drive:
Example only:
Code: [Select] del /s c:\*.mp3
I'm not aware of a command that will enumerate the drive letters and type of drive of a machine to the console, so you will need to hardcode a DEL statment for each drive on the system.
Each machine COULD have it's own customized cleanup file and you could use the task SCHEDULER to run once a week.
A Windows Script works better here, where you can enumerate the drive letters and drive types. If you're on a domain and you have administrative privledges to the remote machines you can run a single script from your machine to cleanup the entire network. If you have a workgroup network you would need to be able to map the remote drives to your machine and cleanup each machine drive by drive.
Hope this gives you some ideas.
PS. Mass deletes are very popular this week. Must MAKE great stocking stuffers.
|