Page 2 of 2

Re: Copying a file

Posted: Sun Sep 05, 2021 8:28 am
by Jimmy
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

Re: Copying a file

Posted: Mon Sep 06, 2021 8:16 am
by Natter
Thans, Jimmy ! Can. But this is not quite convenient because SHFileOperation() assumes shell dialog box hints

Re: Copying a file

Posted: Sat Sep 11, 2021 6:56 am
by Jimmy
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