VBcoders Browse New Submit Contact Sign In

No account? Register free

Forgot password?

CopyFileAny

Mike Owens  (2 Submissions)   Files/File Controls/Input/Output   Visual Basic 3.0   Unknown Difficulty   Wed 3rd February 2021

This code allows you to copy any file, including your application to another destination at runtime.
Note: This code has only been tested on Windows 98 using Visual Basic 6.0

Inputs
Input file, output file

Assumes
Note: This sub is only useful for copying inaccessable files. For regular files, the "FileCopy" sub should be called. An example of use would be to make your exe copy itself somewhere else while running.

Returns
Returns 1 on success, 0 on error.

Rate CopyFileAny (4(4 Vote))
CopyFileAny.bas

CopyFileAny Comments

No comments yet — be the first to post one!

Post a Comment

0/1000 characters