For Windows Shellpath supposes to return the Shortpath when the directory exists, otherwise it returns the Longpath
With a Longpath a lot of shell apps do not work correctly, even if you use quotes. So you ALWAYS need the Shortpath for those Shell apps.
[code]dim folder1,folder2 as FolderItem
folder1 = SpecialFolder.Desktop
msgbox folder1.ShellPath
folder2 =SpecialFolder.Desktop.child("test ")
MsgBox folder2.ShellPath
[/code]
You will notice folder1 will give the Shortpath (because it exists). folder1 will give the Longpath.
So, how can I get the Shortpath of folder2 ?