Best way to move files in VB.Net.....

  • Thread starter Thread starter Smith Guy
  • Start date Start date
S

Smith Guy

My requirement is to copy the files from one local harddisk folder to mapped
network drive. File sizes are 10 to 25 mb. Which is the efficient way of
moving the files in VB.Net? I am asking this question just to make sure that
I am getting the best benefit of the .Net Framework class libraries.

I am using Vb.Net 2003 and .Net Framework 1.1.

Thanks,

Smith
 
Smith Guy said:
My requirement is to copy the files from one local harddisk folder to
mapped
network drive. File sizes are 10 to 25 mb. Which is the efficient way of
moving the files in VB.Net? I am asking this question just to make sure
that
I am getting the best benefit of the .Net Framework class libraries.

'Microsoft.VisualBasic.FileSystem.FileCopy'
'System.IO.File.Copy'
 
Smith,

In addition to the others.

VisualBasic is so nice that there is often not a "best" way. There are a lot
of solutions which can be the best in a lot of situations.

You will take probably another route (even that they are nearby) to go to
work than to swim at the beach.

They both are "the best", the first by instance for the time you need for
it, the second to relax.

VBNet allows you that.

I hope that my explanation is understandable.

Cor
 
Back
Top