diff --git a/internal/processmanager/winsw.go b/internal/processmanager/winsw.go index 7ae31e9..4f1bbb2 100644 --- a/internal/processmanager/winsw.go +++ b/internal/processmanager/winsw.go @@ -279,7 +279,7 @@ func (pm *WinSW) buildServiceConfig(server *domain.Server) (string, error) { if filepath.Ext(executable) == ".bat" { executable = "cmd.exe" - argArr = append(argArr, "/c", cmd) + argArr = append(argArr, "/c", executable) } argArr = append(argArr, cmdArr[1:]...)