views:

303

answers:

1

The question says it all. I want to paste a file from the clipboard that has been copied from a compress folder using VB.net. By examining the clipboard, I see there is a FileGroupDescriptorW which seems to contain some information about the file. But I have not found how to use the information to grab the file and paste it.

+1  A: 

The clipboard should contain data in the format of: CF_HDROP. This can be converted to a file list by calling the DragQueryFile API. Then it's just a list of fully-qualified filenames of whatever files were copied. Now you can operate on those files. Here's a VB example: http://support.microsoft.com/kb/231721

Chris Thornton