search on file name length?

  • Thread starter Thread starter Elmar
  • Start date Start date
E

Elmar

I am trying to find all the files on a partition whose file name length
exceeds 110 characters (the limit for the DVD backup software). How can
I set up a search field in the win2K folder search to do this?

- elmar
 
I am trying to find all the files on a partition whose file name length
exceeds 110 characters (the limit for the DVD backup software). How can
I set up a search field in the win2K folder search to do this?

I dare to say that's not possible. You need a command line tool.

The command line interpreter (CLI) I use is 4NT, sort of a replacement
for CMD.EXE. Using 4NT, the following command will display all filenames
on the C: drive where the fully qualified name exceeds 110 characters:

FOR /A:-D /R C:\ %fn in (*.*) IF %@LEN[%fn] GT 110 ECHO %fn

FOR is documented at <http://jpsoft.com/help/for.htm>, @len[] at
<http://jpsoft.com/help/f_len.htm>, a summary of 4NT's functions at
<http://jpsoft.com/help/functioncats.htm>.
 
...Using 4NT, the following command will display all filenames
on the C: drive where the fully qualified name exceeds 110 characters:

FOR /A:-D /R C:\ %fn in (*.*) IF %@LEN[%fn] GT 110 ECHO %fn

Great - that worked fine! thanks. I used the trial version and it did
the job perfectly.

- elmar
 
Back
Top