need to copy files

daveofgv

Well-known member
Joined
Sep 17, 2008
Messages
218
Location
Dallas, TX
Programming Experience
1-3
I have an excel sheet with image names in column A. I have a directory (with subfolders) on my network with all the images in there plus some.

I need to copy only specific files from one location to another.

How could I do this?

thanks in advanced
 
I don't have much experience working with excel files, but check out How to automate Excel from Visual Basic .NET to fill or to obtain data in a range by using arrays and Microsoft.Office.Interop.Excel Namespace () for some information on opening an excel file from vb.net.

after you figure out what you need to, you can just copy the file using something like

        Dim source, dest As String 'set values...

        My.Computer.FileSystem.CopyFile(source, dest)

        'or

        IO.File.Copy(source, dest)


hope that is of some help?
 
Back
Top