Using this codefrom this threadim DataObject As New DataObject
Dim tempFileArray(0) As String
'NOTE THAT IT MUST BE PASSED AN ARRAY!!!
tempFileArray(0) = activeListView.SelectedItems(0).Tag
DataObject.SetData(DataFormats.FileDrop, False, tempFileArray)
Clipboard.SetDataObject(DataObject)
http://vbforums.com/showthread.php?t...file+clipboard
I was able to copy a file and then paste it anywhere on my machine.
However, I need to be able to copy multiple files at once. Does anyone know how to accomplish this? I tried creating an ArrayList; didn't work. If I change the declaration to Dim tempFileArray(X) As String (X being ANY number), and change NOTHING else, it quits working. This, obviously, prevents from copying multiple files (or even one, for that matter). Sometimes it makes the Paste option enabled, but pasting produces no results.
Any ideas? I am stumped.
Thanks




Reply With Quote