Hi SuperSav,
The extension name for a shortcut is "lnk".
For example,
System.Collections.Specialized.StringCollection stringCollection = new System.Collections.Specialized.StringCollection();
stringCollection.Add(@"
D:\a.lnk ");
Clipboard.SetFileDropList(stringCollection);
If you use
System.Collections.Specialized.StringCollection stringCollection = new System.Collections.Specialized.StringCollection();
stringCollection.Add(@"
D:\a ");
Clipboard.SetFileDropList(stringCollection);
No error will popup, but the set Clipboard action is failed. You cannot paste that shortcut file.
Hope this give you some light.
If you have any question, please feel free to tell me.
Sincerely,
Kira Qian
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the
All-In-One Code Framework!