what and how do you run a batch file?
General:
A batch file is a text file with windows-commands in there. You know the cmd / command prompt? Everything you do there can be "pre-written" into a text file.
Then you rename it from ".txt" to ".bat" and you can run it.
Example:
Instead of going into the taskbar, clicking on a program, moving the mouse to the x in the right corner, you can also do it the complicated way like:
Creating "task_kill_ACC.txt"
Writing in there: (fantasy writing but the format is like this!)
Taskkill /blubb /blah "Assetto Corsa Competizione.exe" /force /admin
Save as: "task_kill_ACC.bat"
Then you double click it and boom, ACC is killed.
It's useful to kill lot of stuff with just a simple double click or you can use it to autostart programs.
You can also use windows' task scheduler to kill or run programs.
If you are a server host and you run multiple AC1 servers at the same time, they will only show as a black cmd window and they will also stack.
If you want to restart one of them you won't know which would be the correct one so you would click through them all until you luckily hit the right one.
You can write a batch file to kill the AC1 server, copy it into each server folder and simply replace the number.
So killing the correct one will be a matter of a double click instead of searching for the right instance.
Very very handy stuff! I did exactly this with the AC servers for someone who runs up to 40 servers. Not all at the same time but he needed 40 separate instances available.
About this batch file mentioned in here:
- find out which tasks in the taskmanager could be killed without interfering with playing ACC
- find out all services that could be killed
- Write the batch file containing all the tasks and services
- double click it and boom, clean windows
To be honest I don't think you would gain a lot though...