Tuesday, May 3, 2011

How to copy and paste a file with the clipboard from a compressed folder using VB.Net

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.

From stackoverflow
  • 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

0 comments:

Post a Comment