ImageEn, unit iexWindowsFunctions

CutFilesToClipboard


Declaration

function CutFilesToClipboard(Handle: HWND; Filenames: TStrings): Boolean; overload;
function CutFilesToClipboard(Handle: HWND; Filenames: string): Boolean; overload;


Description

Adds a list of filenames to the clipboard and specifies that they should moved (same as selecting Ctrl+X in Windows Explorer). The filenames can then be pasted into other Windows applications such as Explorer using Ctrl+V. After pasting they will be removed from the source folder.
Can specify 0 for Handle.


Examples

CutFilesToClipboard( Form1.Handle, ssFilenames );
CutFilesToClipboard( Form1.Handle, 'C:\image.jpeg' );
CutFilesToClipboard( Form1.Handle, 'C:\image1.jpeg'#0'C:\image2.jpeg'#0'C:\image3.jpeg'#0#0 );