0

I'm working in Centura 3.0 team developer and I want to copy large file

VisFileCopy is not working with large files.

Unfortunately, I couldn't reach any documentation related to maximum allowable data size or the return errors description.

I do some tests and I've discovered it is working fine with files 5.25 GB and I wanna copy file with 11 GB

File Size        State
5.25 GB          Copied
5.62 GB          Not Copied and retrieve Error (-39)

Is there an equivalent function of VisFileCopy working with large files smoothly?

ahmed abdelqader
  • 3,409
  • 17
  • 36

1 Answers1

0

Use the Win32API function SHFileOperation found in SHELL32.DLL.

1) Declare SHFileOperation in External functions: ( if not already )

enter image description here

2) Declare some constants used by SHFileOperation:

enter image description here

3) Declare your own wrapper ( to replace VisFileCopy ) as an Internal Function:

enter image description here

4) Call your wrapper function with whatever parameters you want ( e.g. include/ exclude a progress bar )

enter image description here

Steve Leighton
  • 790
  • 5
  • 15