Page 1
Page 1
Started By
Message

Mass/Batch renaming of files in Office 2013

Posted on 5/25/16 at 3:44 pm
Posted by GFunk
Denham Springs
Member since Feb 2011
14966 posts
Posted on 5/25/16 at 3:44 pm
I am trying to upload a large amount of data files (.doc/.docx/.pdf/.xls) to a Sharepoint Site. In Office 2013, use of parentheses and ampersand & is acceptable. But when attempting to upload these files to the SPS, these file names are invalidating my batch-upload process for the entire folder.

I'm looking for a way to rename these in a batch or mass by just deleting the & and the ().

Any help?
Posted by TigerRob20
Baton Rouge
Member since Nov 2008
3732 posts
Posted on 5/25/16 at 4:06 pm to
If you have access to a Mac, you could use Automator. I don't know the equivalent for Windows, but would be interested if someone knew...
Posted by LSU316
Rice and Easy Baby!!!
Member since Nov 2007
29288 posts
Posted on 5/25/16 at 4:24 pm to
Powershell
Posted by The Next
Baton Rouge
Member since Oct 2013
417 posts
Posted on 5/25/16 at 5:55 pm to
I'm in the car right now and I can't remember the name of the program but I remember using one for a project we had. It worked great and allowed us to use different variables when renaming. I'll do a quick search when I get home.

ETA: Bulk File Renamer
This post was edited on 5/25/16 at 5:59 pm
Posted by Spock's Eyebrow
Member since May 2012
12300 posts
Posted on 5/25/16 at 6:00 pm to
The program I use is called Renamer.
Posted by foshizzle
Washington DC metro
Member since Mar 2008
40599 posts
Posted on 5/25/16 at 7:25 pm to
Powershell is far more elegant but you can use Excel to do it too.

Put *copies* of all the files you want to rename in the same folder. Open a command window (cmd.exe) and cd your way to that folder.

Now type "dir * /b > files.txt"

Open the new file you just created called "files.txt" in notepad. It should be a bare listing of the files you put in that folder, and it will include files.txt itself. You don't care about that file, so copy and paste the entire list into Excel and remove files.txt from the list.

I'll assume that you pasted the list into column A in Excel. Type this into column B: =SUBSTITUTE(A1,"(","")

That will take whatever is in cell A1, and delete the ( in the new filename in column B. Adjust to your needs.

Then repeat this with any other characters you need to substitute in columns C, D, E, etc.

Finally you should have every file with a desired new name. I'll assume that is column L for no particular reason. In your final rightmost column enter this formula: ="ren "&A1&" "&L1. Drag and drop down the column.

Now select that final column, copy and paste into your command window. Voila!

This isn't a very elegant way to do it but it should work fine.
Posted by Spock's Eyebrow
Member since May 2012
12300 posts
Posted on 5/25/16 at 10:39 pm to
Dude, google "Renamer". First hit is the one:

LINK

The free version lets you define 5 rules per job and shows you a live preview on the files you've selected to rename. Multiple rules allow you to build up a complex rename operation in simple steps, and the steps include everything you could want from simple additions and deletions to substitutions to numbering to regex operations. It even includes Undo if you screw up, which you probably won't need thanks to the live preview.
Posted by GFunk
Denham Springs
Member since Feb 2011
14966 posts
Posted on 5/26/16 at 12:01 pm to
quote:

Spock's Eyebrow
quote:

The free version lets you define 5 rules per job and shows you a live preview on the files you've selected to rename. Multiple rules allow you to build up a complex rename operation in simple steps, and the steps include everything you could want from simple additions and deletions to substitutions to numbering to regex operations. It even includes Undo if you screw up, which you probably won't need thanks to the live preview.



Downloaded it and it seems to be that they're renamed in the Rename/Preview window. But how do you drag and drop them back into the folders and is there some way that I can plop them back into the folders from whence they came?

Otherwise, I've created another job for myself...423 individual files that I have to hunt and peck through to put back into the old folders.

I'm asking this because when I go back into Win Explorer, the folders many of these individual folders were housed in still have the parentheses around them which aren't allowed for the SPS.

ETA: I had to play around with the programming and sorting a tad more to figure it out. I hadn't given it instructions to sort by file and path in the correct order in order for the folders to be changed based on my required rules as well.

This was EXTREMELY helpful for a free program and I am highly impressed.
This post was edited on 5/26/16 at 12:10 pm
Posted by Spock's Eyebrow
Member since May 2012
12300 posts
Posted on 5/26/16 at 6:25 pm to
quote:

This was EXTREMELY helpful for a free program and I am highly impressed.


Yep, great program.
first pageprev pagePage 1 of 1Next pagelast page
refresh

Back to top
logoFollow TigerDroppings for LSU Football News
Follow us on Twitter, Facebook and Instagram to get the latest updates on LSU Football and Recruiting.

FacebookTwitterInstagram