open-golang/open/exec_windows.go

16 lines
270 B
Go

// +build windows
package open
import (
"os/exec"
)
func open(input string) *exec.Cmd {
return exec.Command("cmd", "/C", "start", "", input)
}
func openWith(input string, appName string) *exec.Cmd {
return exec.Command("cmd", "/C", "start", "", appName, input)
}