On Apr 24, 2006, at 5:12 PM, Christer Olsson wrote:
Can anybody think of a reason why it should behave this way?
Maybe because the docs says "If you pass a Shell path, it must
be an=
absolute path. If not, an UnsupportedFormatException will result"?
Well, maybe, except that a path starting with "~" IS an absolute
path, is it
not? It's certainly not relative to whatever my current working
directory
happens to be...
AFAIU it's not an absolute path, which *always* starts with a
"/" (or "\").
~/ is just a macro, expanded by the shell (not all shells, if I
remember correctly).
Try using System.EnvironmentVariable("HOME") + whatever
...or SpecialFolder.Userhome.shellpath + whatever
Probably Joe knows how to resolve ~. The question is whether
GetFolderItem should be able to resolve ~. I certainly once expected
it to do so.
Charles Yeomans
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>