On Mar 12, 2007, at 12:34 PM, Arnaud Nicolet wrote: > Le 12 mars 07 à 17:21 Soir, Tim Jones a écrit: > >> 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). > > Are not there times where it won't work? > Suppose I have 2 "Macintosh HD" drives (removable). > I insert the first one, then the second one. I save a shell path then > I eject both disks. > Then, I insert the disks in the opposite order (the second one and > then the first one). The saved shell path will point to the wrong > disk, won't it?
Correct. Unix appends an incrementing integer on the end of any subsequent volume with a duplicate name, therefore, the order in which you mounted volumes in significant. This is were the display name comes in. At least in Unix (I haven't tried this in RB), your volume name can be "Macintosh\ HD\ 1" or "Macintosh HD 1", and your display name will still be "Macintosh HD". If you never mount or unmount volumes, then the ShellPath will always be unique and reliable, even in RB using GetFolderitem. If you start mounting volumes with duplicate names however, then you can run into problems. - Andrew Keller _______________________________________________ Unsubscribe or switch delivery mode: <http://www.realsoftware.com/support/listmanager/> Search the archives: <http://support.realsoftware.com/listarchives/lists.html>
