Problem in selecting .lnk files with FileDialog

A

Aldo Verlinde

This message was posted in the MSDN newsgroep vb.winapi earlier. Gale Green
suggested I post it here:

I am using the FileDialog(msoFileDialogFilePicker) object in a home-made MS
Access application to select multiple files for deletion. I've discovered
that when you select a shortcut to e.g. a data file (this is officially
termed a 'shell link', I believe?), the actual SelectedItem returned is the
file the shortcut is referring to, not the shortcut itself. This in itself
is not a problem (I want to delete both the data file and the shortcut), but
I don't seem to be able to select the shortcut itself. How do I get this
working?

Dootje
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top