forked from mirror/open-golang
Fix 'start' executable not found in %PATH%
This commit is contained in:
parent
00211322a2
commit
c47f41e3ae
|
@ -7,9 +7,9 @@ import (
|
|||
)
|
||||
|
||||
func open(input string) *exec.Cmd {
|
||||
return exec.Command("start", "", input)
|
||||
return exec.Command("cmd", "/C", "start", "", input)
|
||||
}
|
||||
|
||||
func openWith(input string, appName string) *exec.Cmd {
|
||||
return exec.Command("start", "", appName, input)
|
||||
return exec.Command("cmd", "/C", "start", "", appName, input)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue