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

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
 
H

Herfried K. Wagner [MVP]

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'
 
C

Cor Ligthert

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top