Copying a file

Re: Copying a file

Postby Jimmy » Sun Sep 05, 2021 8:28 am

hi,

can you copy File with Explorer to USB-Stick :?: ( do NOT use "send to" ! )

if yes you might have a look at ShFileOperation() which "is" the "copy" Part of Explorer
https://docs.microsoft.com/en-us/windows/win32/api/shellapi/nf-shellapi-shfileoperationa

have a look at x:\fwh\samples\dlgfile.prg
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1590
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Re: Copying a file

Postby Natter » Mon Sep 06, 2021 8:16 am

Thans, Jimmy ! Can. But this is not quite convenient because SHFileOperation() assumes shell dialog box hints
Natter
 
Posts: 1120
Joined: Mon May 14, 2007 9:49 am

Re: Copying a file

Postby Jimmy » Sat Sep 11, 2021 6:56 am

hi,

funny that you don´t want Animation. for short files you will not see it.

what about CopyFileW function from Kernel32.dll
https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-copyfilew
greeting,
Jimmy
User avatar
Jimmy
 
Posts: 1590
Joined: Thu Sep 05, 2019 5:32 am
Location: Hamburg, Germany

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 27 guests