|
-
Sep 24th, 2008, 07:53 PM
#1
Thread Starter
New Member
[RESOLVED] [2008] Custom File Copy Code
I'm working on a program which deals with transferring files to a user-specified directory which in most cases will be on another computer. It currently works just fine using My.Computer.CopyFile and My.Computer.FileSystem.CopyDirectory as well as a progress bar.
The problem is I would like to program in an accurate progress bar and potentially even calculate the estimate time remaining. I currently have it updating based on file size as each file or directory is finished, but that works terribly when large files or directories are being used.
After extensive Googling, searching MSDN, and searching the forums, I'm still having issues figuring out what to do. I figured out how to give the standard Windows file copy dialog, but I need to updating things on my form and assessing transfer time in my own code. The best I could find online is that I most likely need to use BinaryReader & BinaryWriter or IO.FileStream and create my own code for moving files. Unfortunately, the few examples of even remotely relevant code I can find online are either for previous version of VB (and don't work) or for C++ or C#.
Can anyone point me in the right direction here? A good VB.NET 2008 code example or article with instructions would be enough here.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|