-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNoAdmin-ServerMode.bat
38 lines (30 loc) · 1.12 KB
/
NoAdmin-ServerMode.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
@echo off
set bios_loader=EPSDK-SRVMGMT
set bios_version=R1
cd /d %~dp0
call sys\kernel\bootable\init.bat sys sm cl tl
echo Starting Server
set debug_info=true
set clean_www=false
set server_initdir=%initdir%
set www=%server_initdir%\www
call %kernel%\include.bat %sdkdir%\include\server_configure.h
set serverdir=%server_initdir%
for %%f in (%server_initdir%;%server_initdir%\task;%server_initdir%\task\tm;%www%;%www%\sha_tbl) do if not exist %%f mkdir %%f
for %%f in (%feature%) do if exist %appdir%\%%f\www call %kernel%\init_www.bat %%f
for %%f in (%feature%) do if exist %appdir%\%%f\server_init.bat start /MIN %appdir%\%%f\server_init.bat __SERVER_INIT__
start cmd.exe
:loop
set tm=%time::=_%
set tm=%tm:~0,-6%
set dt=%date:/=_%
set dt=%dt:~0,-3%
echo 触发时间:%dt% %tm%
if exist %server_dir%\task\%dt%\%tm%.bat call %server_dir%\task\%dt%\%tm%.bat >>%sys_log%
if exist %server_dir%\task\tm\%tm%.bat call %server_dir%\task\tm\%tm%.bat >>%sys_log%
if not exist %server_dir%\task\%dt%\%tm%.bat echo 没有日期+时间触发项目
if not exist %server_dir%\task\tm\%tm%.bat echo 没有时间触发项目
::RPC Control
::Task Regist
sleep 60
goto loop