Fix 'start' executable not found in %PATH%

This commit is contained in:
Nick Powell 2014-05-12 13:53:40 -07:00
parent 00211322a2
commit c47f41e3ae
1 changed files with 2 additions and 2 deletions

View File

@ -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)
}