How I did my files:
In the menu select "Project" then "Options"
In the dialog box check the box "Verbose Build"
Click "OK"
Now launch a compile, in the bottom window, where is the famous code you have the command line.
Copy it and save it in a cmd file.
From now you have just to lauch the cmd file...