VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

Alternative FileCopy Use to copy opened access databases or to copy a file and make a prog. bar

Matheus Moreira  (2 Submissions)   Files/File Controls/Input/Output   Visual Basic 3.0   Intermediate   Wed 3rd February 2021

I made this code because I need to copy an access database with the file open (in use). But, visual basic FileCopy method and windows apis for this pourpose fails in this case with the "File Access Error". So, I made this function that copy the file in blocks. You can alter the block size so the copy can be faster or slower.
Well, thats it. I hope that this code can be useful to anyone!
Ah, the error handle was generated with Ax-Tools CodeSmart 2001, an excelent Add-In for any visual basic programmer! Recommended! :) www.axtools.com

Rate Alternative FileCopy Use to copy opened access databases or to copy a file and make a prog. bar (17(17 Vote))
Alternative FileCopy Use to copy opened access databases or to copy a file and make a prog. bar.bas

Alternative FileCopy Use to copy opened access databases or to copy a file and make a prog. bar Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters