Hello,
In the windows folder I select multiple files and copy them to the clipboard. How can I get from the clipboard the names of these files ?
Hello,
In the windows folder I select multiple files and copy them to the clipboard. How can I get from the clipboard the names of these files ?
#include "FiveWin.ch"
function Main()
local n := 0, nFormat
while ( nFormat := EnumClipboardFormats( n ) ) == n
MsgInfo( nFormat )
n++
end
return nil
#pragma BEGINDUMP
#include <windows.h>
#include <hbapi.h>
HB_FUNC( ENUMCLIPBOARDFORMATS )
{
hb_retnl( EnumClipboardFormats( hb_parnl( 1 ) ) );
}
#pragma ENDDUMPA temporary workaround.
Select files in Windows Explorer.
Right-Click while holding Shift key down.
A new option will appear in the context menu named "Copy as access path".
It just copies all filenames (with full paths too) to the clipboard, then you can paste it anywhere else.