Copying file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • varsha desai
    New Member
    • Mar 2007
    • 7

    #1

    Copying file

    Hello there!
    I want to copy the file with different name within same folder. I am not seeing any method in FileSystemObjec t which will do it. Does anybody know how to do it? Please help me, It's urgent.
  • vijaydiwakar
    Contributor
    • Feb 2007
    • 579

    #2
    Originally posted by varsha desai
    Hello there!
    I want to copy the file with different name within same folder. I am not seeing any method in FileSystemObjec t which will do it. Does anybody know how to do it? Please help me, It's urgent.
    try to use this code
    Code:
    Dim fSys As New FileSystemObject
    Private Sub Form_Load()
        fSys.CopyFile "C:\a.jpg", "D:\", True
    End Sub

    Comment

    Working...