Simply download the batch file below on the machine hosting your Moodle server, modify it with your information (i.e. paths to the relevant directories, etc.), then run the batch file. The batch file is hosted on Rapidshare.com and can be downloaded from there.
For the batch file to work, I make the following assumptions:
- You are running your Moodle server in a Windows environment, and you have administrator access on the machine hosting your Moodle server.
- You are using MySQL Server as your database server.
- You have installed 7-Zip (http://www.7-zip.org/) on the machine hosting your Moodle server.
The full source code (with detailed comments) of the batch file is as follows: