summaryrefslogtreecommitdiffstats
path: root/MCServer/install_windows_service.cmd
diff options
context:
space:
mode:
Diffstat (limited to 'MCServer/install_windows_service.cmd')
-rw-r--r--MCServer/install_windows_service.cmd7
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