Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to copy file reference to Windows clipboard
Message
 
 
To
06/11/2001 06:33:47
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00577850
Message ID:
00577895
Views:
95
>>Can one of our API gurus please show me how to copy a file reference to the Windows clipboard (and also access a file reference on the windows clipboard) so that I can copy/paste files or file references (names) between my VFP app and Windows Explorer. I have not been able to find a way to do this, although the OLE drag-and-drop capabilities of VFP make it relatively simple to drag-drop files. We all know there are times when desktop clutter makes it more convenenient to copy-paste. Help!... and thanks!
>
>Microsoft includes several free tools in a package called PowerToys. One of the tools adds the two options to the "Send To" menu: "Copy to Clipboard as Name", "Copy to Clipboard as Contents". "Copy to Clipboard as Name" will copy path+filename of the selected file to the clipboard.
>
>Hilmar.

Hilmar, thank you, but copying the name to the clipboard as a text item (CF_TEXT format) does not solve the problem. I need to be able to put an object of type CF_FILES onto the windows clipboard (for doing a copy function) and access such objects on the windows clipboard (for doing a paste function), just like you can do with getdata/setdata when using OLE drag-and-drop. Putting a text object on the clipboard that happens to be a file name is not sufficient.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform