Copy Files Using the Win32 API

Category:
Files and Directories
Type:
Snippets
Difficulty:
Beginning
Author:
Intelligent Solutions Inc.

Version Compatibility:

More information:
In my testing, there was a bit of a speed difference when copying large files using the FileCopy API function, as compared to built-in VB methods such as the FileCopy method or the FileSystemObject.

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: