go - Launching a new command window from Golang in Windows -


i'm writing go application uses command window (cmd) user input , output. need launch instance of application using own window.

i trying use "os/exec" package creates window gui apps. tried executing application cmd /c ___ still hasn't created separate window.

is there way launch non-gui application own window, stdin , stdout?

i found it!

the trick use "start" command after cmd /c

here's code:

cmd:= exec.command("cmd","/c","start",_path_to_executable_) err=cmd.start()


Comments

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -