This few lines of code are retrieving the list of files that are copied to the clipboard, if any.
- ‘ Remember to copy some files to the clipboard before testing this
If Clipboard.ContainsFileDropList() Then
Dim FileList As System.Collections.Specialized.StringCollection = Clipboard.GetFileDropList()
' Loop through the list of files
For Each FileName As String In FileList
' Show the full file name (including path)
MessageBox.Show(FileName)
Next FileName
End If