File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,8 +27,8 @@ if "%ROOT_DIR%"=="" if "%SERVER_IP%"=="" (
2727)
2828
2929:: lua environment
30- set INIT = @%RD_ROOT_DIR % \src\lua_init.lua
31- set EXE = %RD_ROOT_DIR % bin\win\lua.exe
30+ set INIT = @%ROOT_DIR % \src\lua_init.lua
31+ set EXE = %ROOT_DIR % bin\win\lua.exe
3232
3333setx RD_ROOT_DIR %ROOT_DIR%
3434setx RD_SERVER_IP %SERVER_IP%
@@ -74,18 +74,18 @@ goto :eof
7474
7575 call :write_server_params %remote_path% %local_path%
7676
77- set start_file = %RD_ROOT_DIR % bat\rd_server.vbs
77+ set start_file = %ROOT_DIR % bat\rd_server.vbs
7878 if exist %start_file% del %start_file%
7979
8080 echo Set ws = CreateObject(" Wscript.Shell" )> %start_file%
81- echo ws.run " cmd /c %LUA_EXE % %RD_ROOT_DIR % src\rd_server.lua" ,vbhide>> %start_file%
81+ echo ws.run " cmd /c %EXE % %ROOT_DIR % src\rd_server.lua" ,vbhide>> %start_file%
8282 schtasks /create /tn cmd_gui /tr " %start_file% " /sc onlogon
8383goto :eof
8484
8585:write_server_params
8686 set target_file_prefix = server_cfg.lua
87- set target_file = %RD_ROOT_DIR % llib\%target_file_prefix%
88- set bak_file = %RD_ROOT_DIR % llib\%target_file_prefix% .bak
87+ set target_file = %ROOT_DIR % llib\%target_file_prefix%
88+ set bak_file = %ROOT_DIR % llib\%target_file_prefix% .bak
8989 set tag1 = share_directory_map
9090 set tag2 = }
9191
You can’t perform that action at this time.
0 commit comments