Looking for files with path/filename over 220 characters

SteveChestnut

New Member
Joined
Mar 17, 2010
Messages
7
Hello,
I am working with a new document management system.
I'm having a problem where this system does not see files where the
path and filename together are over 220 characters long.
I need to search my server and locate all files where the path and
filename together total 220 characters or more.

I'm not sure how to do this.
I know how to use DOS to do a complete directory search and
output the list of paths/files to a .txt (DIR * /o /b /s > list.txt).
But I don't know how to go through the list .txt and remove any
line under 220 charactrers.

Or there may be another way????
What I'd like to end up with is a list of only the files that their
path/filename.ext equal 220 characters or more.
If anyone has a good suggestion I'd appreciate it.

Thank you,
Steve
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Just wanted to post that I found a solution to my problem.

-I use DOS to create a text file of a directory listing.
-I created a sort spreadsheet where Column A is blank
and Column B contains a formula displaying the character
count of whatever is in cell A.
-I then copy and paste my directory list from the .TXT file
into Excel Column A.
-I then sort Column B numerically descending and can see
which files are in paths that are too long.

Out of 13000 files 376 files were in paths 220 characters or more.
Adios for now,
Steve
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,711
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top