Finding Paths >255 - Excel Help & Excel Macro Help
SEARCH ENTIRE SITE LOADING..

OZGRID Excel Help & Excel Best Practices Forums

Information Helpful? Why Not Donate.

SPECIALS PAGE FOR BARGAINS | BUILD YOUR GOLF SWING | FREE CUSTOM FUNCTIONS ADD-IN


Download Active Data For Excel Demo


Go Back Excel Help & Excel Macro Help > HELP FORUMS > EXCEL HELP
HOME Register Forum Help Calendar Search For Today's Posts Mark Forums Read

Reply

Finding Paths >255

ANSWERS TO SIMILAR QUESTIONS
Cell Values As File PathsIgnoring bad file pathspathsVariable directories in filename paths



Javascript DHTML Drop Down Menu Powered by dhtml-menu-builder.com

Create Excel dashboards quickly with Plug-N-Play reports.


 
Thread Tools Search this Thread
Old December 13th, 2004
Intelligent Converters
FREE DOWNLOADS
File/Password Recovery
mikesaladin mikesaladin is offline
I agreed to these rules
 
I'm a Spammer:
MS Office Version: 2000
Op System: Windows XP
Assumed Experience: Just Above Average (Can Record Macros & Know Most of Excel)
Join Date: 8th December 2004
English is 1st Language:
Posts: 1 -- Threads: 1
Finding Paths >255

Hi,
I downloaded a really helpful file called "Directory Listing.xls" from Michael Hayes
available from:Directory Listing.xls
The original posting was under:Directory Listing in a Spreadsheet

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
Print [Post / Thread] Reply With Quote
Old December 13th, 2004
Intelligent Converters
FREE DOWNLOADS
File/Password Recovery
Michael Hayes Michael Hayes is offline
Member
 
I'm a Spammer:
MS Office Version: 2003
Op System: Windows XP
Assumed Experience:
Join Date: 15th April 2004
English is 1st Language:
Location: Sydney
Posts: 76 -- Threads: 7
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
Print [Post / Thread] Reply With Quote
Old December 15th, 2004
Intelligent Converters
FREE DOWNLOADS
File/Password Recovery
Michael Hayes Michael Hayes is offline
Member
 
I'm a Spammer:
MS Office Version: 2003
Op System: Windows XP
Assumed Experience:
Join Date: 15th April 2004
English is 1st Language:
Location: Sydney
Posts: 76 -- Threads: 7
Re: Finding Paths >255

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.
File Type: zip Directory Listing.zip (22.1 KB, 168 views)
Print [Post / Thread] Reply With Quote
Reply Lifetime Upgrade To Ad Free Styles

   « PREVIOUS lock/protect worksheet || Print Macro NEXT »
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +9. The time now is 01:39.


Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Ozgrid is Not Associated With Microsoft. Ozgrid Retains the Rights to ALL Posts and Threads