On Mar 11, 2007, at 12:08 PM, Sven E Olsson wrote:

> Hi list,
> I wanted some code that do NOT work, yes it should NOT work...
>
> I think all of us know that create folderitems from absolute paths is
> a bad thing..
> And now i try to write some code that not working using absolute path
> when i create a folderitem.
>
>    ' create a folderitem from the absolute path
>    f = GetFolderItem(pathStr)

I ALWAYS use the Shell path.  This way, any mountpoints will be  
properly resolved regardless of the name of the volumes (volumes with  
the same name have the same Absolute path).

> The pathStr is created from d.absolutepath and is 266 bytes long ..
> two folders have names about 50 bytes long. What is the limit? Should
> it not be a filename longer than 32 bytes? ... or was it 64 or 256 ...

The system definition for PATH_MAX for local volumes is currently 1024.

> My code is still working...
> I need some help to get my code to NOT work...

Huh?

Why would you want to actually have the code break?

Tim
--
Tim Jones
[EMAIL PROTECTED]



_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to