I assume that I don't have to make a sample for you that you can do that
with the directoryinfo.
Ofcourse you can do this , however it requires a lot more coding as a few
lines , to emulate the API WIN32 method
And as i do not know your expertise in VB6 i mentioned that the VB6 code
did something else as i think you thought it does
as i said the VB6 code gives a progress callback during the copy of a file
so you get the progress of the file actually beeing copied
same as you copy a large file in Windows ( you will see a progressbar of
the copy process for this one file )
It is however what you count as important, in my country we have soon
elections and than they count the votes. Not the weight of a person.
yes i know i live in the same country ,,,,, i wish they would choose on
quality instead of looks
but nevertheless ,,, i think it is important if you show a progress that
the user is understanding that something is actually hapening if you would
go for a file count
instead of file size to determine the progress of your copy process you
will end up with a seeming to be unresponsive app when you have large
files to copy
just my opinion
regards
Michel Posseth [MCP]
Cor Ligthert said:
Michel,
I assume that I don't have to make a sample for you that you can do that
with the directoryinfo.
http://msdn.microsoft.com/library/d...tml/frlrfsystemiofileinfoclasslengthtopic.asp
It is however what you count as important, in my country we have soon
elections and than they count the votes. Not the weight of a person.
Cor
Michel Posseth said:
It is not the same Cor
The VB6 code shows a progress for the file beeing copied
in your scenario you would take the count of the files in the directory
as the progress bars max value
and increment the progressbar by one after every file that is copied
but what if one of the files is 1gb and all the others are a few kb`s ??
regards
Michel Posseth [MCP]
"Cor Ligthert [MVP]" <
[email protected]> schreef in bericht
Hi,
If you use instead of that the
DirectoryInfo
http://msdn.microsoft.com/library/d...html/frlrfsystemiodirectoryinfoclasstopic.asp
than you know how many files you have to copy
And use the File.move than you know the steps in a for each loop
http://msdn2.microsoft.com/en-us/library/system.io.file.move.aspx
Than I don't see what can be the trouble.
So if that does not go, than please reply and tell why
I hope this helps,
Cor
"brother52" <
[email protected]> schreef in bericht
I am using My.Computer.FileSystem.CopyFile() to copy a bunch of files
from
one directoy to another, and would like to display a progress bar on
the
screen for each file being copied. Is this possible?