tagging and renaming filenames in win7 issue


  1. Posts : 74
    windows 7
       #1

    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 Thumbnails Attached Thumbnails tagging and renaming filenames in win7 issue-rexfiles.png  
      My Computer


  2. Posts : 73
    Windows 7 Ultimate x64 SP1
       #2

    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


 

  Related Discussions
Our Sites
Site Links
About 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 23:30.
Find Us