Copy DIR

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NSF12345
    New Member
    • Aug 2006
    • 21

    #1

    Copy DIR

    In VB6 (from what i can make out it has sevice pack 2 on, though if someone can tell me how to check i will be grateful) I have been using FileCopy "File Location and name.***" , "New file location and name.***" to copy single files form one location to another, and i have searched through the net for days, and found nothing that will copy a whole DIRECTORY accross, which is what i want.

    Iv tried dircopy (but that didnt work)

    This is so that, instead of copying 10 files (using 10 lines of code) i can copy 1 directory that has all 10 files, so only one copy is initiated.

    Thanks in advance for any help i recieve
  • jayne
    New Member
    • Sep 2006
    • 2

    #2
    have you tried just

    copy "C:\My Documents\*.*" c:\temp

    Comment

    Working...