+ Reply to Thread
Results 1 to 2 of 2

Find Folder Path + file Name Length and Insert into Spreadsheet

  1. #1
    Steve Roberts
    Guest

    Find Folder Path + file Name Length and Insert into Spreadsheet

    Our company has found a fatal flaw in a program that is caused by too long
    of a path. The company wants us to go through our folders and shorten the
    paths to less than 200 characters including the file name. Any suggestions
    on how I can have excel scan all folders + subfolders + files for ones that
    exceed 200 characters and insert the offendign paths into a spreadsheet.
    This would save us from counting our 2500 root folders + subfolders.

    Thanks

    Steve



  2. #2
    Registered User
    Join Date
    07-25-2005
    Posts
    62
    Open up the MS-DOS command prompt and type this code

    C: 'or whatever your drive letter is for the folders
    cd\ 'this gets you to the root
    dir/s/b > files.txt 'this will put your whole file list in a the file (will take a while)

    Next open the file (Drive:\files.txt) in Excel and use =len(A1) in column B and sort it by that column, blah blah. I think you can get it from here.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1