View Single Post
  #1 (permalink)  
Old September 22nd, 2007, 11:54 PM
JimmieC123 JimmieC123 is offline
Registered User
 
Join Date: Sep 2007
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Need help with a copy code

Hello,
I am writing a code to copy files to a new location and the way I have it set up is to browse t the source location and have that pasted into textbox1. Then use the folder browser to specify a new location and have that pasted into textbox2.
I would like to have a button that will then copy that the file specified to the location specified.

My issue is that I am not sure how to do this using the FileSystemObject. So far I have:

        Dim fso

        fso = CreateObject("File.Copy")

but I am not sure if i am going the right direction or not.
I'm not sure how to make the copy command read the file that is shown in textbox1 and copy it into the location in textbox2.

Any help would be greatly appreciated as I have a dead line for this that is coming up very quickly.

Thank you again,

Jimmie
Reply With Quote