Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: tagging and renaming filenames in win7 issue

24 Jun 2011   #1

windows 7
tagging and renaming filenames in win7 issue

Hi everyone, i need to replace a portion of a filename in a folder. You probably won;t be familiar with the app "sage converter" for Stylus RMX, but i am hitting a file length problem during the process (please see attached image).

I have a solution, but I need you to suggest a method/windows-dos app which would facilitate the following:

One of the many files(of which there are hundreds-otherwise i would do it manually) which is causing me a problem is the one listed :"FL_DubbedGtr+Dubbed_60BPM_AMAJ_06.rx2". All the files i wish to rename and shorten will have the same portion of text within each filename,e.g. "FL_DubbedGtr+Dubbed". I wish to search throughout a folder in Windows Explorer and replace that phrase with "Dgtr". This will reduce the length of all the filenames to a size which my app, "sage convertor" can handle.

So, My question is, is there a way to search and replace partial phrases in all filenames in a folder, or can you suggest a method by which i can achieve this?

Thank you for looking.

Attached Images
My System SpecsSystem Spec

25 Jun 2011   #2

Windows 7 Ultimate x64 SP1

Normally, I would solve this easily using cygwin, but this is because I am very familiar with UNIX shell programming.

As an alternative, I have an idea:

you need to create a batch file, something like "rename_files.bat".

Every line will be of the form: ren bigname smallername

First, get the list of files: dir > FILELIST.TXT

Then open this in Microsoft Excel, and get rid of the other stuff, you should be able to get all the filenames into one column. Then copy them to the next column and do the replace that you want. Then, insert a column containing "ren" before these two.

Now each row looks like: | ren | oldname | newname |

Finally, export as a tab separated file and rename it to the batch file.

Run the batch file and you are done.

I hope this helps!
My System SpecsSystem Spec

 tagging and renaming filenames in win7 issue

Thread Tools

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 01:12.

Twitter Facebook Google+

Windows 7 Forums

Seven Forums Android App Seven Forums IOS App