[Release] Modified Run.bat (useful for server testing)

Wanted to quickly share my updated/modified run.bat file for those who are currently tired of manually deleting their cache every time they want to make a server edit.

Note: The batch file will perform the following functions

  1. Auto close the server (if running)
  2. Auto close FiveM (if running)
  3. Auto Delete temp server cache files
  4. Auto Start the server
  5. Auto start FiveM

***Please be aware that this batch file must be edited before running as you must change your user name within the script. *I have highlighted the lines that need to be edited.
Also Note: that the Batch file will only work if you have the “cfx-server” folder on your desktop
*Unless you change the directory/folder name.

RAW Script:

@echo off
taskkill /IM CitizenMP.Server.exe
taskkill /f /im FiveM.exe
cd “C:\Users"YOUR USER ACCOUNT HERE”\Desktop\cfx-server\cache\http-files"
del /F /Q .
cd “C:\Users"YOUR USER ACCOUNT HERE”\Desktop\cfx-server"
start CitizenMP.Server.exe %*
cd “C:\Users"YOUR USER ACCOUNT HERE”\Desktop\FiveM"
start FiveM.exe

Download (only valid for 30 days): https://ufile.io/ba254

Disclaimer: I am not a scripter - more like script kiddy - so if you have any recommendations please feel free to comment below! :grin:

–Off topic–
*if you know of anyone willing to help script a community “/Jail” or “/purge” script Please PM me!

I hope you are aware that stop [resourcename], start [resourcename] and restart [resourcename] commands are a thing.
You do not need to restart your server, nor clear the cache when changing code out.

1 Like