Results 1 to 2 of 2
  1. #1
    Gold Lounger
    Join Date
    Jan 2004
    Location
    Italy
    Posts
    3,245
    Thanks
    0
    Thanked 0 Times in 0 Posts

    copy from dir to other dir (2000 r-1)

    assuming i have a dir source myservermydir and in this dir are present variuos file all with the exstenion .txt how to copy all file with this exestion into dir destination myserver1mydir1, naturally in VBA.
    Tks.

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: copy from dir to other dir (2000 r-1)

    You can use
    <code>
    CreateObject("Scripting.FileSystemObject").CopyFil e "myservermydir*.txt", "myserver1mydir1"
    </code>
    The destination path must end in a backslash.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •