2014-02-04 20:11:26 +04:00
|
|
|
// +build windows
|
|
|
|
|
|
|
|
package open
|
|
|
|
|
|
|
|
import (
|
|
|
|
"os/exec"
|
|
|
|
)
|
|
|
|
|
|
|
|
func open(input string) *exec.Cmd {
|
2014-05-13 00:53:40 +04:00
|
|
|
return exec.Command("cmd", "/C", "start", "", input)
|
2014-02-04 20:11:26 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
func openWith(input string, appName string) *exec.Cmd {
|
2014-05-13 00:53:40 +04:00
|
|
|
return exec.Command("cmd", "/C", "start", "", appName, input)
|
2014-02-04 20:11:26 +04:00
|
|
|
}
|