Batch rename tool or app?
Hi all - first post here. I had no idea where to put this, so I figured I'd start here. If this should be elsewhere, an mod should feel free to move it.
Looking for a way to batch rename files in a folder, where only a specified set of characters get changed. I can't do this through Windows (select all files > rename) b/c some of the characters get changed whereas I do not want them to, and all files are appended with (1) (2) etc., which I do not want either.
For ex., let's say I have three files:
snare-dry-1.wav
snare-dry-2.wav
snare-dry-3.wav
- and I want to wind up with
snare-wet-1.wav
snare-wet-2.wav
snare-wet-3.wav
Is there a tool or an app that will do this?
Thanks in advance.
Re: Batch rename tool or app?
Most any scripting language will do that. For Windows, you can use Powershell, or even plain old DOS commands. Search for a known pattern and replace text is a simple operation.
Re: Batch rename tool or app?
Cool - powershell (or a DOS prompt) does it.
Dir | rename-item -newname { $_.name -replace "wet","dry" }
Thanks so much!
Re: Batch rename tool or app?
Linux:
Code:
for i in snare-dry-*.wav; do mv $i `echo $i | sed 's/dry/wet/'`; done
Re: Batch rename tool or app?
Thanks for that. Maybe it will help someone else tho; I am far from a Linux person.
Hey Bio - you are a mod. I wanted to contact the forum (admin/mod - doesn't matter) about posting something. I see no option for me to pm anyone, and the contact info - webmaster@codeguru.com - is not working. I sent an email on the main site (not the forum) a few days ago, but have not received a response. What's the best way to get in touch?
Thanks!
Re: Batch rename tool or app?
You can contact the forum administrator, Brad Jones, by PM, see: http://forums.codeguru.com/member.php?37456-Brad-Jones
Let me know if you have any problems!
Re: Batch rename tool or app?
Quote:
Originally Posted by
BioPhysEngr
Yeah - I see no option for me to pm him, and the contact info - webmaster@codeguru.com - is not working.
Re: Batch rename tool or app?
That PM link works for me. Don't you see a Send Private Message link?
Re: Batch rename tool or app?
Hi - that link I posted is not a PM link. It's an email link - that's what doesn't work.
No, I do not see a Send Private Message link. In fact, if I do a ctrl+f for either Private or Message, I get zero results for both. Maybe b/c I am new?
Anyway, I was hoping to get some help in decomiling a file, and wasn't sure which was the best/proper subforum to post.
Thanks!
Re: Batch rename tool or app?
Since reverse engineering an application (most likely) is against the forum rules there is no appropriate place for that. See http://forums.codeguru.com/misc.php?do=showrules
Re: Batch rename tool or app?
Quote:
Originally Posted by
S_M_A
I am NOT trying to reverse engineer an application.
I see nothing in that link that speaks to reverse engineering.
I am still interested, however, in contact info, as there is no pm on the page above, and webmaster@codeguru.com - is not working.
Anyone withany ideas on contact info?
Re: Batch rename tool or app?
Ok maybe I misunderstood what decompile was. Anyway, you don't have to PM Brad about what forum to use, read the forum descriptions and do your best pick. If it's the wrong forum a mod can always move the thread.
If you still want to PM Brad here's a direct link http://forums.codeguru.com/private.php?do=newpm&u=37456
Re: Batch rename tool or app?
Quote:
Originally Posted by
S_M_A
Doesn't work.
vBulletin Message
riffwraith, you do not have permission to access this page. This could be due to one of several reasons:
1.Your user account may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
2.If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.
Dont really understand what the issue is here...
Re: Batch rename tool or app?
bjones@quinstreet.com will work for me.
I'll have to look to see why webmaster@codeguru.com isn't working. It should be.
As to PMs -- you have to have a certain number of posts and such before PMs are enabled in an account. This is an anti-spamming feature. A number of spammers will get on the forum and start PMing people. By forcing posts and such before allowing PMs, we eliminate that. Additionally, the forums are primarily for public communication rather than private messaging.
Hopefully the spam filters won't eat any messages you send me :)
Brad!
Re: Batch rename tool or app?
I just tested the webmaster@codeguru.com address and it worked fine for me.