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

Author Topic: copying a directory to an other one using a batch file  (Read 2740 times)

0 Members and 1 Guest are viewing this topic.

OperationRealityCoder

    Topic Starter


    Rookie

    copying a directory to an other one using a batch file
    « on: September 18, 2009, 12:43:46 PM »
    Hi Guys
    I have made a modification of a game (Battlefield 2) and am trying to create a batch file from a directory to a new one, so i don't have to putthose files in the installer and reduce the download size.
    The directories i want to copy are located in: "C:\Program Files\EA Games\Battlefield 2\mods\bf2\Levels"  and i want to copy them to: "C:\Program Files\EA Games\Battlefield 2\mods\reality\Levels". This reduces the download size with about 1.3GB so i really need it.

    Please Help.
    Thanks in advance.

    billrich

    • Guest
    Re: copying a directory to an other one using a batch file
    « Reply #1 on: September 18, 2009, 01:13:21 PM »

    C:\>xcopy /?
    Copies files and directory trees.

    XCOPY source [destination]  [/E]]   

    source       Specifies the file(s) to copy.
      destination  Specifies the location and/or name of new files.
     
      /E           Copies directories and subdirectories, including empty ones.
                   Same as /S /E. May be used to modify /T.
     C:\>