mirror of
https://github.com/tiny-craft/tiny-rdm.git
synced 2025-04-06 12:28:04 +08:00
15 lines
250 B
Go
15 lines
250 B
Go
//go:build windows
|
|
|
|
package convutil
|
|
|
|
import (
|
|
"os/exec"
|
|
"syscall"
|
|
)
|
|
|
|
func runCommand(name string, arg ...string) ([]byte, error) {
|
|
cmd := exec.Command(name, arg...)
|
|
cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true}
|
|
return cmd.Output()
|
|
}
|