1//go:build windows
 2// +build windows
 3
 4package cmd
 5
 6import (
 7	"os/exec"
 8)
 9
10func detachProcess(c *exec.Cmd, stdoutPath, stderrPath string) {
11	argv1 := c.Args[0]
12	c.Path = "cmd"
13	c.Args = []string{
14		"cmd",
15		"/c",
16		argv1,
17		">",
18		stdoutPath,
19		"2>",
20		stderrPath,
21	}
22}