How to run a simple Windows command?
This command:
exec.Command(\"del\", \"c:\\\\aaa.txt\")
.. outputs th
In case you need the output of cmd:
if c, err := exec.Command("cmd","/c","del","a.txt").CombinedOutput(); err != nil { log.Fatal(err) } else { fmt.Printf("%s\n", c) }