ImageEn, unit iexWindowsFunctions |
|
CopyFilesToClipboard
Declaration
function CopyFilesToClipboard(Handle: HWND; Filenames: TStrings): Boolean; overload;
function CopyFilesToClipboard(Handle: HWND; const Filenames: string): Boolean; overload;
Description
Adds a list of filenames to the clipboard (same as selecting Ctrl+C in Windows Explorer). The filenames can then be pasted into other Windows applications such as Explorer using Ctrl+V.
Can specify 0 for Handle.
CopyFilesToClipboard( Form1.Handle, ssFilenames );
CopyFilesToClipboard( Form1.Handle, 'C:\image.jpeg' );
CopyFilesToClipboard( Form1.Handle, 'C:\image1.jpeg'#0'C:\image2.jpeg'#0'C:\image3.jpeg'#0#0 );