diff options
author | Anthony Birkett <anthony@a-birkett.com> | 2015-03-31 15:50:03 +0200 |
---|---|---|
committer | Anthony Birkett <anthony@a-birkett.com> | 2015-04-01 01:03:37 +0200 |
commit | 51891b766c733220b5267be1b4bcf6f04717e976 (patch) | |
tree | 6af0b9ac70329a7e83ff5d68f548a6081c32b633 /MCServer/install_windows_service.cmd | |
parent | QtBiomeVisualiser: Fixed compilation and INI loading. (diff) | |
download | cuberite-51891b766c733220b5267be1b4bcf6f04717e976.tar cuberite-51891b766c733220b5267be1b4bcf6f04717e976.tar.gz cuberite-51891b766c733220b5267be1b4bcf6f04717e976.tar.bz2 cuberite-51891b766c733220b5267be1b4bcf6f04717e976.tar.lz cuberite-51891b766c733220b5267be1b4bcf6f04717e976.tar.xz cuberite-51891b766c733220b5267be1b4bcf6f04717e976.tar.zst cuberite-51891b766c733220b5267be1b4bcf6f04717e976.zip |
Diffstat (limited to 'MCServer/install_windows_service.cmd')
-rw-r--r-- | MCServer/install_windows_service.cmd | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/MCServer/install_windows_service.cmd b/MCServer/install_windows_service.cmd new file mode 100644 index 000000000..ba8a8c128 --- /dev/null +++ b/MCServer/install_windows_service.cmd @@ -0,0 +1,7 @@ +rem Alter this if you need to install multiple instances.
+@echo off
+set SERVICENAME="MCServer"
+
+set CURRENTDIR=%CD%
+sc create %SERVICENAME% binPath= "%CURRENTDIR%\MCServer.exe /service" start= auto DisplayName= %SERVICENAME%
+sc description %SERVICENAME% "Minecraft server instance"
\ No newline at end of file |