How do I resolve alias from a dragitem

When an alias (shortcut) is dropped onto a control that has been set to accept all dropped items, the dragitem is received as an alias and not resolved to point to the target of the alias. So once I have the alias, how do I get the folderitem for the true item the alias is pointing to?

I’m working on Windows with Xojo 2020r2.1.

if IsAlias = True could you create a new folderitem with followAlias argument ?

Yep, that should work.

If obj.FolderItem.IsAlias Then
  Var f As New FolderItem (obj.FolderItem.NativePath, FolderItem.PathModes.Native, True)
  ...
End If
1 Like