-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathStart Server CFX.bat
53 lines (47 loc) · 1.34 KB
/
Start Server CFX.bat
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
:MENU_START
@echo off
cls
rem Write your path here to the folder where you have the FXServer.exe
set PATH_FX_SERVER=%PATH_FX_SERVER%;C:\CHANGE_PATH_HERE
rem Write your path here to the folder where you have the cache folder
set PATH_CACHE=%PATH_CACHE%;C:\CHANGE_PATH_HERE\cache\files
set INPUT=false
set "MENU_OPTION="
set "OPTION1_INPUT="
set "OPTION2_INPUT="
echo +===============================================+
echo . BATCH START - My Server CFX .
echo +===============================================+
echo . .
echo . 1) Start Server .
echo . 2) Clear Cache - Start Server .
echo . 3) QUIT .
echo . .
echo +===============================================+
set /p MENU_OPTION="OPTION: "
IF %MENU_OPTION%==1 GOTO OPTION1
IF %MENU_OPTION%==2 GOTO OPTION2
IF %MENU_OPTION%==3 GOTO OPTION3
IF %INPUT%==false GOTO DEFAULT
:OPTION1
set INPUT=true
cd %PATH_FX_SERVER%
cmd /k FXServer.exe
timeout 2 > NUL
GOTO MENU_START
:OPTION2
set INPUT=true
del /s /q %PATH_CACHE%
cd %PATH_FX_SERVER%
cmd /k FXServer.exe
timeout 2 > NUL
GOTO MENU_START
:OPTION3
set INPUT=true
echo See you soon
timeout 2 > NUL
exit /b
:DEFAULT
echo Option not available
timeout 2 > NUL
GOTO MENU_START