Features


Tuesday, May 13, 2008

Move Image to new destination in vb.net

The System.IO namespace contains types that allow synchronous and asynchronous reading and writing on data streams and files.
--------------------------------------------------------------------------------
// First you need to declare this on first
Imports System.IO

// I created a function called CopyFile
// Source = "c:/images/1.jpg"
//
destination = "c:/move/1.jpg"

Private Sub CopyFile(ByVal source As String, ByVal destination As String)
My.Computer.FileSystem.CopyFile(source, destination, False)
End Sub
--------------------------------------------------------------------------------
Hope this help. Thank you.

No comments: