They're pretty simple, really. A batch file (.bat) is a file containing a set of instructions like what would be entered at a command prompt (MS-DOS prompt). It can be written in such a way that a person just double-clicks the file, and it executes a series of commands. They can be written in notepad, so they don't require any special tools or programs. They can get very complicated, but a simple one would look something like this (taken from my GAFHMod, check my sig if you want to download the batch file and edit it for your mod):
Code:
echo off
cd ..
attrib -r Data\*.*
attrib -r Data\text\*.*
copy GAFHMod\Data\*.* Data
copy GAFHMod\Data\text\*.* Data\text
echo Install Complete!
pause
Here's the explanation:
Code:
echo off -- don't 'echo' the commands, just display once (for clarity)
cd .. -- go up one folder
attrib -r Data\*.* -- unset the 'read-only' status of the Data folder
attrib -r Data\text\*.* -- same for Data\text
copy GAFHMod\Data\*.* Data -- copy the Data folder from the GAFHMod to the RTW Data folder
copy GAFHMod\Data\text\*.* Data\text
echo Install Complete! --tell the user it's done
pause -- wait for the user to hit any key
Bookmarks