INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Path & Filename ***TOTAL LENGTH*** SmartList (Possible?)  (Read 1666 times)

d_pert

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 392
  • I love music and great audio!
Path & Filename ***TOTAL LENGTH*** SmartList (Possible?)
« on: January 12, 2010, 07:33:18 pm »

Hi,

I've searched the forum(s) but can't find anything on this...

I just tried to back up my library (over 60,000) files, using a typical 3rd party backup system to a second HDD.

It reported that several hundred files could not be backed up ('processed') because the combined path and filename would be greater the 255 characters.

I gather that the extra folder name(s) that the backup program adds at the root of the backup location is pushing files that were already close to 255, over that limit.

I would like to be able to control, or be made aware of path\filename length in MC14...

Is there a way, or could there be made a way, to search based on a total path\filename length and then deal with the problem files manually, i.e a SmartList for helping with this?

We would be able to set a 'max' value, i.e. 225, making it a customizable report.

Thanks!
Logged
Derek Pert
(Windows 11 Pro x64 / 32GB RAM)

marko

  • MC Beta Team
  • Citizen of the Universe
  • *****
  • Posts: 8967
Re: Path & Filename ***TOTAL LENGTH*** SmartList (Possible?)
« Reply #1 on: January 13, 2010, 01:16:07 am »

I think counting the characters in a file path might be achievable, but getting there would be so convoluted it would be quite impractical.
You could try using an expression like the one shown below in a smartlist to show all files with a file path count of 225 or more...

Press F9 to add a new smartlist, press the "Import/Export" button and paste the blue text in there. Press OK twice to see results...

[=isempty(mid([filename],225,-1)]=0

-marko.

gappie

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 4566
Re: Path & Filename ***TOTAL LENGTH*** SmartList (Possible?)
« Reply #2 on: January 13, 2010, 03:19:52 am »

there also is an expression that is not listed in the dev zone  ;)
length([filename])

this should work also
[=IsEqual(Length([filename]),225,6]=1

 :)
gab
Logged

d_pert

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 392
  • I love music and great audio!
Re: Path & Filename ***TOTAL LENGTH*** SmartList (Possible?)
« Reply #3 on: January 13, 2010, 10:11:56 am »

Wow ... cool ... will try these ASAP.

Thanks!
Logged
Derek Pert
(Windows 11 Pro x64 / 32GB RAM)

d_pert

  • Regular Member
  • Galactic Citizen
  • ****
  • Posts: 392
  • I love music and great audio!
Re: Path & Filename ***TOTAL LENGTH*** SmartList (Possible?)
« Reply #4 on: January 13, 2010, 10:36:07 am »

Both work equally well, of course ;)

Thanks again!
Logged
Derek Pert
(Windows 11 Pro x64 / 32GB RAM)

AoXoMoXoA

  • Regular Member
  • Citizen of the Universe
  • *****
  • Posts: 1551
  • I am a kangaroo . . . . no, really!
Re: Path & Filename ***TOTAL LENGTH*** SmartList (Possible?)
« Reply #5 on: January 13, 2010, 02:47:49 pm »

Thanks to you all I found a bunch with long file names that had slipped by me. Appreciate it  ;)
Logged
. . . the game is rigged
Pages: [1]   Go Up