search on file name length?

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
 
M

Michael Bednarek

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>.
 
E

Elmar

...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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top