i am copying a file which is nearly 10 MB through FileSystemObjec t. It is a single file, is it possible to show progress bar for that file.
Front-End : VB 6.0
I don't believe so. After all, from your point of view it's a single action, right?
What I'd recommend is to do the copy "manually". That is, open input and output files as Binary, and use Get/Put to transfer a nice large chunk at a time. That way, you can do a progress display. The larger the chunks, the faster the transfer, but how much RAM do you want to use up, and how slow is each read/write action?
I'm guessing this must be via a fairly slow mechanism? 10MB is pretty small by present standards. Copying the file on a slow HDD shouldn't take more than a second or two.
I don't believe so. After all, from your point of view it's a single action, right?
What I'd recommend is to do the copy "manually". That is, open input and output files as Binary, and use Get/Put to transfer a nice large chunk at a time. That way, you can do a progress display. The larger the chunks, the faster the transfer, but how much RAM do you want to use up, and how slow is each read/write action?
I'm guessing this must be via a fairly slow mechanism? 10MB is pretty small by present standards. Copying the file on a slow HDD shouldn't take more than a second or two.
No, for sample I gave like that.
Because for multiple files, I can count the file and show the progress. But here (It is an MAYA Rendering files its size is min 100 MB to 2 GB some will be 10 MB). So I have to copy those files in some conditions. Here I have to get each file size and show two progress bars.
1. current file
2. total files done
i am copying a file which is nearly 10 MB through FileSystemObjec t. It is a single file, is it possible to show progress bar for that file.
Front-End : VB 6.0
Originally posted by http://www.microsoft.c om/technet/scriptcenter/guide/sas_scr_klwf.ms px?mfr=true
Because CopyFolder is a single operation, there is no way to track its progress; you simply have to wait until the operation has finished. If you want to monitor the progress of the copy command, you should use the Shell Application object instead. This object is discussed in "Files and Folders" in this book.
Comment