package main import ( "fmt" "os/exec" ) // 失败! func main() { err := exec.Command("cmd.exe", "/c", "D:\\EPWork\\goland\\workspace\\golang_learn\\src\\data_func\\go_to_cmd\\a.vbs").Run() if err != nil { fmt.Printf("Error: %s", err.Error()) } }