tagging and renaming filenames in win7 issue

bethy1234

New member
Member
Local time
5:23 PM
Messages
74
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.
 

Attachments

  • rexfiles.PNG
    rexfiles.PNG
    3.8 KB · Views: 7

My Computer My Computer

At a glance

windows 7
OS
windows 7
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 Computer My Computer

At a glance

Windows 7 Ultimate x64 SP1Intel Core i7-3960X16 GB GSkill DDR3-2133 CL9EVGA SC GTX 680
Computer Manufacturer/Model Number
Custom
OS
Windows 7 Ultimate x64 SP1
CPU
Intel Core i7-3960X
Motherboard
Intel DX79SI
Memory
16 GB GSkill DDR3-2133 CL9
Graphics Card(s)
EVGA SC GTX 680
Sound Card
Onboard Realtek
Monitor(s) Displays
Dell 2005FPW
Screen Resolution
1680x1050
Hard Drives
Intel 520 SSD 240 GB,
2x Seagate 7200.12 1 TB
PSU
Corsair 850W HX
Case
Corsair 500R
Cooling
Corsair H100
Keyboard
Microsoft Natural 4000
Back
Top