Skip to content

Instantly share code, notes, and snippets.

@TheGamerzs
TheGamerzs / update_server.bat
Created April 6, 2024 09:53
Update fxserver automatically to latest - Windows
@echo off
setlocal enabledelayedexpansion
echo "Updating server..."
:: Delete the old server folder
rmdir /s /q server
:: Download the new server, from https://runtime.fivem.net/artifacts/fivem/build_server_windows/master/ get zip from href where `<a class="panel-block is-active"` using its `href` attribute, only first result
curl -s https://runtime.fivem.net/artifacts/fivem/build_server_windows/master/ | findstr /i /c:"<a class=\"panel-block is-active\"" > temp.txt

Keybase proof

I hereby claim:

  • I am TheGamerzs on github.
  • I am gamerzs (https://keybase.io/gamerzs) on keybase.
  • I have a public key whose fingerprint is 24A6 D735 3E9D 888B 6180 94C1 79A0 C87D D6E9 15D1

To claim this, I am signing this object: