Ozgrid Excel Help & Best Practices Forums


XL Templates | XL Add-ins | XL Training | XL Estimating | XL Scheduling | XL Recovery | XL Trading | XL Financial | XL Conversion | XL Charting


+ Reply to Thread
Results 1 to 3 of 3

Thread: Finding Paths >255

  1. #1
    Join Date
    8th December 2004
    Posts
    1

    Finding Paths >255


    Download Active Data For Excel > > DETAILS > >
    Hi,
    I downloaded a really helpful file called "Directory Listing.xls" from Michael Hayes
    available from:Directory Listing.xls
    The original posting was under:Original Posting

    It lists Directories and their contents, filesize etc.
    What I need is some code that will look through my hard drive and list
    FolderName & Filename as a string where
    "the length of the string of the folder name + length of string of filename > 255"
    I tried to change the code in the above sheet, but to no avail, I'm a bit of a novice to this. Can anyone help?
    I've posted a personal message to Michael, but he hasn't replied.
    Any help appreciated - Peter Vowels p.vowels@optusnet.com.au

  2. #2
    Join Date
    15th April 2004
    Location
    Sydney
    Posts
    76

    Re: Finding Paths >255

    Peter,
    I only saw the email this morning. I will have a look and see what I can do.
    Regards,
    Michael

  3. #3
    Join Date
    15th April 2004
    Location
    Sydney
    Posts
    76

    Re: Finding Paths >255


    Create Excel dashboards quickly with Plug-N-Play reports.
    Peter,
    Its all mounting up with Christmas Approaching but here is an updated version which should do what you want. Run the spreadsheet as normal and once the paths and files are displayed, press Ctrl + z and you will get to enter 3 variables.
    The first for Path Length
    then for File Length and
    then for Path + File Length.

    In your case, you can fold the first two out of the way by setting them to say 500. The default for each is given as 255.

    I chose the approach of filtering and copying existing data as the process of writing the files is undertaken recursively and it got messy to keep backtracking to delete un-needed directories. The output has Path and Filename in seperate cells but you can join these if you need.

    Unfortunately, the file doubled in size and so I have had to zip it to get it in here.

    Regards,
    Michael
    Attached Files. REMINDER! OzGrid accepts no responsibility for ANY adverse effects as a result from downloading attached files. ALWAYS run an up-to-date virus scan and disable macros.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

     

Possible Answers

  1. Training: Animations II: Motion paths
    By Dave Hawley in forum Free Microsoft Excel 2003 Tutorials
    Replies: 0
    Last Post: February 10th, 2009, 06:17
  2. Cell Values As File Paths
    By rm_hodson in forum EXCEL HELP
    Replies: 10
    Last Post: February 22nd, 2007, 04:16
  3. Ignoring bad file paths
    By IanDunnett in forum EXCEL HELP
    Replies: 3
    Last Post: December 2nd, 2005, 00:02
  4. paths
    By lostside in forum EXCEL HELP
    Replies: 1
    Last Post: June 1st, 2005, 20:10
  5. Variable directories in filename paths
    By philbee in forum EXCEL HELP
    Replies: 5
    Last Post: May 7th, 2004, 05:48

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