Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

This is probably really easy....

Status
Not open for further replies.

crrrazydan

Programmer
Jul 27, 2000
34
0
0
US
How do you copy a file from one folder and paste it in another folder through visual basic?
 
Here is a hardcoded example, True to overwrite the file, False to NOT overwrite

Dim fs As Object
Set fs = CreateObject("Scripting.FileSystemObject")
fs.CopyFile "c:\testfile.txt", "c:\test\", True

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top