tags:

views:

31

answers:

2

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
+1  A: 

The FileInfo class has a MoveTo method that you can use.

klausbyskov