Results 1 to 11 of 11

Thread: DOS commands

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Axebitten Modder Senior Member Dol Guldur's Avatar
    Join Date
    Apr 2005
    Location
    England
    Posts
    1,550

    Default DOS commands

    I am trying to put together a bat file for an installer but it has been years since I used DOS. Does anyone know the command to copy a folder (and all its files/subfolders) to another folder?

    Code:
    md .\bi\ci\
    copy .\bi\* .\bi\ci\
    del /q .\bi\ci\ci\
    del /s /q .\bi\ci\data\world\maps\battle\custom\
    del /s /q .\bi\ci\data\world\maps\base\
    copy .\fe\* .\bi\ci\
    del /s /q .\bi\ci\data\world\maps\campaign\the_south\
    pause
    The first line works (so I have the right directory path settings!) but the second line results in a "specified file not found" error.

    I've tried all manner of variations. It seems to be only looking for files rather than folders I would guess?

    Thanks.

    EDIT: This is what I am trying to do

    1. Install via an installer the modfolder ("ci" in this case) of my mod into a temporary folder
    2. execute a bat file which:

    i. creates empty modfolder in RTW directory
    ii. copies the contents of the bi folder into the new ci folder
    iii. copies the ci folder into the bi folder
    iv. removes the original ci folder
    v. removes the custom and base subfolders from the bi/ci folder
    vi. copies the temporary modfolder ("fe") (installed by the installer) into ci
    vii. deletes the_south subfolder from the ci folder

    Slightly convoluted but a more direct approach resulted in cyclical copying error.
    Last edited by Dol Guldur; 01-28-2007 at 01:28.
    "One of the most sophisticated Total War mods ever developed..."

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Single Sign On provided by vBSSO