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?
The first line works (so I have the right directory path settings!) but the second line results in a "specified file not found" error.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
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.
Bookmarks