diff options
Diffstat (limited to 'Server/install_windows_service.cmd')
-rw-r--r-- | Server/install_windows_service.cmd | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Server/install_windows_service.cmd b/Server/install_windows_service.cmd new file mode 100644 index 000000000..84d69ee1a --- /dev/null +++ b/Server/install_windows_service.cmd @@ -0,0 +1,7 @@ +rem Alter this if you need to install multiple instances.
+@echo off
+set SERVICENAME="Cuberite"
+
+set CURRENTDIR=%CD%
+sc create %SERVICENAME% binPath= "%CURRENTDIR%\Cuberite.exe -d" start= auto DisplayName= %SERVICENAME%
+sc description %SERVICENAME% "Minecraft server instance"
|