I need a way that i can automatically scan my whole drive and rename my *.mp3 to *.3pm or delete them, how I could do that?
feedback
|
|
For the renaming part, you could do this with Ant Renamer. (Although it's hardly the best way to do that) When you click "Add folders", you should check all options (add selected files, add selected folders, apply these two options also to subfolders), and select your drive. It will take long to make the initial list, as it will retrieve the total list of files to rename. Once the files are listed, you can set a "string replacement" action, from .mp3 to .3pm. You can't delete them from this program, though. That said, there is probably a better way to do this, because this method will cost a lot of time for nothing, with listing and attempting to make an action on the totality of files from the drive, not only mp3s. | ||||
|
feedback
|
|
Given a Cygwin or MinGW environment, or even GnuWin32's find:
This is the classic Perl rename script; it's available in many various places. Here's a more updated version on Perlmonks. Download it and save it somewhere on your PATH with the name rename.pl (or update the command with the name you did give it). Replace x with your drive letter (for Cygwin) or the corresponding path for your drive's root in MinGW or GnuWin32. | ||||
|
feedback
|
|
Are you familiar with Python? You could try using the os module: and select all of the files *.mp3 using the | |||||||||||
feedback
|
Well, you say it can rename them or delete them, so here is a command that will delete all *.mp3 files.
| |||
|
feedback
|
