VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



File Copy Class (Updated)

by Donathan Hutchings (3 Submissions)
Category: Files/File Controls/Input/Output
Compatability: Visual Basic 5.0
Difficulty: Intermediate
Date Added: Wed 3rd February 2021
Rating: (3 Votes)

I have added an automatic detection of the target path. If it doesn't exist, created regardless of the depth. I have also added a verify feature to verify the copy was successful. Orig. Desc.
This is a modified verision of Nabhan Ahmed's (Copy File byte by byte) found at https://www.vbcoders.com/vb/scripts/ShowCode.asp?txtCodeId=48319&lngWId=1. Please give all votes to him.
His description
Basically, this program shows you how to copy files byte by byte. Everytime it reads 4 kbs from the source file and write them in the destination file until it reads all bytes in the srouce file. There is a bar that shows the copying progress, and there is a label that shows the copying percentage. In the new update, you can use the browse button to find the source file you want to copy. I'm sure you'll find the code very easy to understand, and that you'll like it.( Would you please vote for this code )
My Changes:
The FileCopy routine was transfered to a self contained class. It checks for proper input for the FileCopy method to work. It is now completey
portable.

Rate File Copy Class (Updated)

Download File Copy Class (Updated)

Download File Copy Class (Updated) (6 KB)

File Copy Class (Updated) Comments

No comments have been posted about File Copy Class (Updated). Why not be the first to post a comment about File Copy Class (Updated).

Post your comment

Subject:
Message:
0/1000 characters