Copy file from source to destination directory

  • Thread starter Thread starter Krich
  • Start date Start date
K

Krich

I want to copy image such as .jpg or .gif from source
directory to destination directory but I don't know how
to or what object or method to use.
 
Example:

File.copy("c:\abc.jpg", "d:\abc.jpg")

(To use File class you have to write following in the beginning of the file,
outside of any class
Imports System.IO
 
Krich said:
I want to copy image such as .jpg or .gif from source
directory to destination directory but I don't know how
to or what object or method to use.

Have a look at the 'FileCopy' method.
 
Back
Top