Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Copying files

Copying files

Scheduled Pinned Locked Moved Visual Basic
question
3 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MARNEFFE Philippe
    wrote on last edited by
    #1

    With a Cmd Button, I want to copy files (always the same (*.DAT)from C:\ to A:\. But, the instruction 'CopyFiles "Source", "Destination" ' doesn't work. How must I do ? Thanks a lot !:confused: MARNEFFE Ph.

    C C 2 Replies Last reply
    0
    • M MARNEFFE Philippe

      With a Cmd Button, I want to copy files (always the same (*.DAT)from C:\ to A:\. But, the instruction 'CopyFiles "Source", "Destination" ' doesn't work. How must I do ? Thanks a lot !:confused: MARNEFFE Ph.

      C Offline
      C Offline
      Cem Kalyoncu
      wrote on last edited by
      #2

      *.Dat is not a valid entry for copyfile... You must add a fileview control to your form. change its pattern to *.dat. Set it invisible. When you project runs set its path to "C:\" and use this code: for i = 0 to file1.count-1 copyfile "c:\" & file1.list(i), "a:\" & file1.list(1) next have good programing, Cem

      1 Reply Last reply
      0
      • M MARNEFFE Philippe

        With a Cmd Button, I want to copy files (always the same (*.DAT)from C:\ to A:\. But, the instruction 'CopyFiles "Source", "Destination" ' doesn't work. How must I do ? Thanks a lot !:confused: MARNEFFE Ph.

        C Offline
        C Offline
        chris foote
        wrote on last edited by
        #3

        check out this article from ms. You can use any wildcard with this procedure. http://support.microsoft.com/support/kb/articles/Q151/7/99.asp

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups