File: server_windows.bat

package info (click to toggle)
nexuiz-data 2.5.2-9
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,294,288 kB
  • sloc: ansic: 10,523; perl: 6,845; sh: 2,188; java: 1,417; xml: 969; lisp: 519; ruby: 136; makefile: 115
file content (27 lines) | stat: -rw-r--r-- 556 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@echo off

setlocal
set executable=nexuiz -dedicated

%~d0
cd "%~p0"

if exist %executable% goto good
if not exist ..\%executable% goto bad
if exist ..\data\server.cfg goto halfgood
goto bad

:bad
echo This script is not properly set up yet.
echo Please refer to the instructions in readme.txt.
echo In short:
echo - copy server.cfg to the data directory and adjust its settings
echo - move this file to the main directory of your Nexuiz installation
pause
exit

:halfgood
cd ..

:good
.\%executable% +serverconfig server.cfg %*