Hello,
Is there a way to create a file from the data on the clipboard.
In the Windows Explorer resultpane there is a "Paste" option. This
menuoption is available or grayed out depending on the content of the
clipboard.
If the menuoption is available a new file is created and the content of the
clipboard is written to the new file. The filename is extracted from the
clipboard data. If the filename is not found then a default filename is
used.
I would like to create a COM wrapper that implements the following
function.(pseudocode)
Public Function SaveClipboardData(Byval FolderPath as string, Byval FileName
as string) as Boolean
Dim FullFileName as String
Dim FileExtension as String
If (data on the clipboard contains an object that can be pasted as a
file)then
FileExtension = Get file extension from clipboard data
FullFileName = FolderPath & "/" & FileName & "." & FileExtension
Create a new file
Write the data from the clipboard to the file
Close the file
SaveClipboardData = True
Else
SaveClipboardData = False
End If
End Function
Is it possible to implement this function with the use of VB 6?
Kind Regards
Willy van Vroenhoven