FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Copying a file
Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: Copying a file
Posted: Sun Sep 05, 2021 08: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
Posts: 1392
Joined: Mon May 14, 2007 09:49 AM
Re: Copying a file
Posted: Mon Sep 06, 2021 08:16 AM

Thans, Jimmy ! Can. But this is not quite convenient because SHFileOperation() assumes shell dialog box hints

Posts: 1772
Joined: Thu Sep 05, 2019 05:32 AM
Re: Copying a file
Posted: Sat Sep 11, 2021 06: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

Continue the discussion