```go
package main
import (
"os/exec"
)
func main() {
cmd := exec.Command("cmd", "/c","pause")
cmd.Start()
}
```
更多评论
这个可以执行:
```go
package main
import (
"os/exec"
"os"
)
func main() {
cmd := exec.Command("ping", "127.0.0.1")
cmd.Stdout= os.Stdout
cmd.Run()
}
```
#1