Santosh Benjamin's Weblog

Adventures with AppFabric, BizTalk & Clouds

DOS Batch Rename in XP

with 2 comments


Just a little non Biztalk tidbit for my own future reference and maybe useful to someone else šŸ™‚

I had a batch of mp3 files i wanted to add a suffix to and was looking for a quick DOS command to do that. I found this article on Yahoo Answers which did the trick and the author did an excellent job of explaining every part of the command.

All I had to write was

for /f “tokens=1-2 delims=.” %i in (‘dir *.mp3 /b’) do ren “%i.%j” “%i(BT).%j”Ā 

and that did the trick basically renaming a file such as “MyFavorite.mp3” to “MyFavorite(BT).mp3”.

Another page with a nice detailed collection of renaming techniques and commands can be found here at ExpertsExchange.

Enjoy.

Advertisements

Written by santoshbenjamin

February 9, 2008 at 4:57 PM

Posted in General

Tagged with

2 Responses

Subscribe to comments with RSS.

  1. Very handy, thanks! šŸ™‚

    Chris

    June 24, 2009 at 9:54 AM

  2. Good stuff!

    Ted

    September 6, 2011 at 1:24 PM


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: