summaryrefslogblamecommitdiffstats
path: root/MCServer/install_windows_service.cmd
blob: d6b6c15a3663f774e98a23003f8e21c0be61aab0 (plain) (tree)
1
2
3
4
5
6
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 -d" start= auto DisplayName= %SERVICENAME%
sc description %SERVICENAME% "Minecraft server instance"