Posts by oskarmatzerath

    Re: File and Folder Index with Hyperlinks


    Hi John W,


    I've been using a slightly modified version of your code for quite a while (thanks, btw), and recently found a small issue. Namely, file addresses longer than 255 characters produce an error and are thus just 'skipped' without leaving any evidence (i.e. the corresponding folder may look empty when it's not).


    Windows will just not allow you to create folder paths which are longer than 255 characters, so it only happens when the path is already quite close to the length limit, and the file name pushes it over the edge.


    The File System Object iterator Folder.Files.Item just doesn't 'see' this long-address files, so the best I could do was print a warning in case the number of files in the folder (which includes these 'ghost' files) is bigger than the actual number of iterations:



    I tought I'd leave it here in case someone has stumbled upon the same issue.


    Cheers.