-
December 12th, 2012, 09:27 AM
#1
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.
-
December 14th, 2012, 02:06 AM
#2
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.
-
December 14th, 2012, 01:32 PM
#3
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!
-
December 16th, 2012, 02:59 PM
#4
Re: Batch rename tool or app?
Linux:
Code:
for i in snare-dry-*.wav; do mv $i `echo $i | sed 's/dry/wet/'`; done
Best Regards,
BioPhysEngr
http://blog.biophysengr.net
--
All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.
-
December 17th, 2012, 12:32 AM
#5
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!
-
December 17th, 2012, 03:49 AM
#6
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!
Best Regards,
BioPhysEngr
http://blog.biophysengr.net
--
All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.
-
December 17th, 2012, 05:40 PM
#7
Re: Batch rename tool or app?
Originally Posted by BioPhysEngr
Yeah - I see no option for me to pm him, and the contact info - webmaster@codeguru.com - is not working.
-
December 18th, 2012, 04:43 PM
#8
Re: Batch rename tool or app?
That PM link works for me. Don't you see a Send Private Message link?
-
December 19th, 2012, 01:04 AM
#9
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!
-
December 19th, 2012, 03:28 PM
#10
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
-
December 19th, 2012, 09:09 PM
#11
Re: Batch rename tool or app?
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?
-
December 20th, 2012, 01:53 PM
#12
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
-
December 20th, 2012, 02:13 PM
#13
Re: Batch rename tool or app?
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...
-
December 20th, 2012, 09:28 PM
#14
Re: Batch rename tool or app?
I just tested the webmaster@codeguru.com address and it worked fine for me.
-----------------------------------------------
Brad! Jones,
Yowza Publishing
LotsOfSoftware, LLC
-----------------------------------------------
-
December 20th, 2012, 09:30 PM
#15
Re: Batch rename tool or app?
Originally Posted by riffwraith
Dont really understand what the issue is here...
All members have the option to disable PM-ing them, but that would affect any registered user (AFAIK guests don't have access to the profile pages at all anyway, and I suppose the PM link in the post header menu not to be available to them either). Mostly a guess, since I never have seen such a scenario before, but perhaps there's a PM restriction for registered members as well, as long as they have a zero post count. You already have made a few posts, but apparently they've all been in the General Discussion / Chit Chat section, and posts made here don't count towards the recorded total posts count. [EDIT: Brad's post #14 seems to support my supposition.]
So maybe making just a single (approved) post in one of the "real" forum sections may resolve your PM problem. The Windows OS Issues section may be a suitable candidate for your question.
Last edited by Eri523; December 20th, 2012 at 09:38 PM.
I was thrown out of college for cheating on the metaphysics exam; I looked into the soul of the boy sitting next to me.
This is a snakeskin jacket! And for me it's a symbol of my individuality, and my belief... in personal freedom.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|