I know we can start another app from the Go code using https://golang.org/pkg/os/exec/#example_Cmd_Run
Is there a way to close/shut another app/process from my code, for example I want want to close MS excel if it is running.
I know we can start another app from the Go code using https://golang.org/pkg/os/exec/#example_Cmd_Run
Is there a way to close/shut another app/process from my code, for example I want want to close MS excel if it is running.
Maybe the following approach
https://en.wikipedia.org/wiki/Signal_(IPC)#SIGINT
Also check if that application has some cli options and switches. In particular for excel, there are a few.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.