is it possible to transfer files using vb.net? Cutting the files from a certain directory and copy it to another
+3
A:
You can use the File
class and its Move
method.
Or the FileInfo
class and its MoveTo
method.
If you want to move whole directories, there are the Directory
and DirctoryInfo
classes and their associated Move
and MoveTo
methods.
With all of the above, if you do want copies, instead of moving files, use the Copy
and CopyTo
methods, which work similarly to the Move
and MoveTo
methods.
This is applicable to all .NET languages, not only VB.NET.
Oded
2010-02-23 12:08:45