File tree Expand file tree Collapse file tree 2 files changed +9
-1
lines changed
Expand file tree Collapse file tree 2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change 11@ echo off
22set INSTALL_DIR = C:\Program Files\WinBoat
33set EXE_PATH = %INSTALL_DIR% \winboat_guest_server.exe
4+ set TIME_SYNC_SCRIPT_PATH = %INSTALL_DIR% \scripts\time-sync.bat
45set NSSM_PATH = %INSTALL_DIR% \nssm.exe
56set OEM_DIR = C:\OEM
67
@@ -24,4 +25,7 @@ xcopy "%OEM_DIR%\*" "%INSTALL_DIR%\" /Y /E
2425netsh advfirewall firewall add rule name=" Allow WinBoat API 7148" dir=in action=allow protocol=TCP localport=7148
2526
2627:: Start the service
27- " %NSSM_PATH% " start WinBoatGuestServer
28+ " %NSSM_PATH% " start WinBoatGuestServer
29+
30+ :: Startup Tasks
31+ schtasks /create /tn " TimeSyncTask" /sc ONSTART /RL HIGHEST /tr " \" %TIME_SYNC_SCRIPT_PATH% \" " /RU SYSTEM
Original file line number Diff line number Diff line change 1+ @ echo off
2+ net stop w32time
3+ net start w32time
4+ w32tm /resync
You can’t perform that action at this time.
0 commit comments