```go
// exeAdress指完整路径
func checkExe2(exeAdress string) {
cmd := exec.Command("cmd.exe", "/c", "start "+exeAdress)
err := cmd.Run()
if err != nil {
log.Println("启动失败:", err)
} else {
log.Println("启动成功!")
}
}
```
有疑问加站长微信联系(非本文作者)
![](https://static.golangjob.cn/static/img/footer.png?imageView2/2/w/280)