Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Taking files from one folder and putting them in another through dos/batch  (Read 3549 times)

0 Members and 1 Guest are viewing this topic.

Kirbya

  • Guest
I'm trying to create a batch file that will copy the files from one folder and paste them into another folder.. but I don't really know how to  :(

DeltaSlaya



    Apprentice
  • Google
    Code: [Select]
    copy /?
    Or;

    Code: [Select]
    xcopy /?
    Or [if you have vista];

    Code: [Select]
    robocopy /?
    should reveal all the information you need.

    Basically it's just:

    Quote
    copy "DIRECTORY TO COPY\*.*" "OUTPUT DIRECTORY"

    Or with xcopy:


    Quote
    xcopy "DIRECTORY TO COPY" "DIRECTORY TO COPY TO" /E
    System specs:
    Intel Core 2 Duo E6600 (up to 3.3 stock V and air)
    ASUS Striker Extreme
    XFX 8600GT XXX Edition
    2x 1gB Corsair XMS2 DDR2-800
    Seagate Barracuda 320gB SATA
    Raidmax Ninja 918 (520W ATXV2.0 PSU)
    -

    Kirbya

    • Guest
    Thanks.. erm I don't know how my eyes skipped over copy... I looked through the help list at least 5 times. But thanks again.

    DeltaSlaya



      Apprentice
    • Google
      Yea, well it's there:

      Quote
      COLOR          Sets the default console foreground and background colors.
      COMP           Compares the contents of two files or sets of files.
      COMPACT        Displays or alters the compression of files on NTFS partitions.
      CONVERT        Converts FAT volumes to NTFS.  You cannot convert the
                     current drive.
      COPY           Copies one or more files to another location.
      DATE           Displays or sets the date.
      DEL            Deletes one or more files.
      DIR            Displays a list of files and subdirectories in a directory.
      DISKCOMP       Compares the contents of two floppy disks.
      DISKCOPY       Copies the contents of one floppy disk to another.
      System specs:
      Intel Core 2 Duo E6600 (up to 3.3 stock V and air)
      ASUS Striker Extreme
      XFX 8600GT XXX Edition
      2x 1gB Corsair XMS2 DDR2-800
      Seagate Barracuda 320gB SATA
      Raidmax Ninja 918 (520W ATXV2.0 PSU)
      -

      Kirbya

      • Guest
      Heh yeah I seen it just a few minutes ago, but I got it to run so thanks.

      DeltaSlaya



        Apprentice
      • Google
        No problem. If you need any more batch / command prompt advice we're glad to help.
        System specs:
        Intel Core 2 Duo E6600 (up to 3.3 stock V and air)
        ASUS Striker Extreme
        XFX 8600GT XXX Edition
        2x 1gB Corsair XMS2 DDR2-800
        Seagate Barracuda 320gB SATA
        Raidmax Ninja 918 (520W ATXV2.0 PSU)
        -