Quantcast
Channel: VBForums - CodeBank - Visual Basic 6 and earlier
Viewing all articles
Browse latest Browse all 1466

Copying from locked file and using chunks with files > 2 GB

$
0
0
Hello!

I am looking for a way to quickly copy files with a filesize of over 2 GB which are currently locked (for example a SQLite database).

Purpose:

- Copy a sqlite db while it is in use
- Allow the copying app to still respond
- Allow copying files of over 2 GB
- Be reasonably fast

The only function which fullfills most of the demands is the following

Dim lRet As Long
lRet = CopyFileW(StrPtr(uSource), StrPtr(uDestination), True)

The problem is that it is blocking. I would have to make this call out of process which I have so far shied away from.

Is anybody aware of other options?

Viewing all articles
Browse latest Browse all 1466

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>