Cropping / Trimming File Names

Post any Bulk Rename Utility support requirements here. Open to all registered users.

Cropping / Trimming File Names

Postby gravelhighway » Mon Feb 15, 2016 6:00 pm

Good morning,

I have numerous files that give a "file name too long" error with Windows. Therefore, I'm wanting to shorten the file names.

The only consistency in the files are that the name is too long for Windows to move the file.

Is there a way to crop or trim the file names? (i.e. if a file name is over 35 characters, shorten it to 25)

Thank you!
gravelhighway
 
Posts: 2
Joined: Mon Feb 15, 2016 5:57 pm

Re: Cropping / Trimming File Names

Postby Admin » Tue Feb 16, 2016 12:27 am

Using Filter (12) , select Subfolders and path len min to 250. That will give you all objects with path length > 250. You can then rename them manually (using F2) or crop them.
Admin
Site Admin
 
Posts: 2352
Joined: Tue Mar 08, 2005 8:39 pm

Re: Cropping / Trimming File Names

Postby therube » Tue Feb 16, 2016 7:51 pm

I'll note that the 'Length' that BRU displays, is the length of the file name itself (exclusive of path).
So you could potentially have a very short file name, but in a very long path, which can also return a "too long" message from Windows.
(Though 12:Path Len Min does filter on the combined path+name length.)


Separately...

Everything can very easily (& quickly) finding long file+path names.
Set Search to 'Match Path'
Set your search term to something like: len:>250
(And of course you can further filter the results returned by Everything.)

You can then drag that set of files into BRU for processing.
therube
 
Posts: 1319
Joined: Mon Jan 18, 2016 6:23 pm

Re: Cropping / Trimming File Names

Postby gravelhighway » Fri Feb 26, 2016 2:13 am

If I try to included subfolders, Bulk Rename Utility crashes.
gravelhighway
 
Posts: 2
Joined: Mon Feb 15, 2016 5:57 pm

Re: Cropping / Trimming File Names

Postby Emerkamp » Fri Feb 26, 2016 4:33 am

gravelhighway wrote:If I try to included subfolders, Bulk Rename Utility crashes.


You might try to shorten the folder names instead... Then do the files
Emerkamp
 
Posts: 140
Joined: Sat Aug 23, 2014 2:35 pm


Return to BRU Support