@echo off
set rootdir=%~dp0
cd /d %rootdir%
sc delete gw.apms
nssm install gw.apms %rootdir%\gw.apms.exe confirm
nssm set gw.apms AppDirectory %rootdir%
nssm set gw.apms AppParameters -cfg apms.json
nssm start gw.apms 