Aug 27, 2000 #1 crrrazydan Programmer Joined Jul 27, 2000 Messages 34 Location US How do you copy a file from one folder and paste it in another folder through visual basic?
Aug 27, 2000 #2 voidhawk IS-IT--Management Joined Aug 13, 2000 Messages 4 Location US 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 Upvote 0 Downvote
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