Copying files in vb.net

mancombseepgood

Executive Member
Joined
Jun 1, 2004
Messages
9,351
Reaction score
2
Location
.
Anyone know how to copy files and folders with vb.net?

I have 2 scenarios
1. Copy all files and folders within an existing folder to another existing folder.
2. Copy all files (exclude folders) within an existing folder to another existing folder.

I want to avoid using older references... can it be done (easily) with vb.net?
 
Ok, so system.io.file.copy copies fine, but recursive subfolder? What a pin in the butt...
 
I wrote a little program in C# (I'm pretty good with VB.NET/C++ also so I can translate if you interested ;) ) to MD5 all files in a directory (or directories) and based on that identify doubles, it got all the files recursively (IE. if you gave it a directory it would get ALL the files in that directory and all subdirectories).

If you haven't solved the problem I can post the code, it would be very easy to change so that it copes files recursively.
 
Top
Sign up to the MyBroadband newsletter
X