如何在Windows上从Golang执行netsh命令
如何执行 netsh 来自Golang的命令,需要以管理员身份运行如何在Windows上从Golang执行netsh命令,go,netsh,Go,Netsh,如何执行 netsh 来自Golang的命令,需要以管理员身份运行 err1 := exec.Command("netsh", "interface ipv6 set privacy state=disable").Run() fmt.Printf("Exec1 err: %+v\n", err1) 请尝试exec.Commandnetsh、interface、ipv6、set、privacy、state=disable。运行,然后以管理员身份运行或将清单文件嵌入exe文件withhttps:
err1 := exec.Command("netsh", "interface ipv6 set privacy state=disable").Run()
fmt.Printf("Exec1 err: %+v\n", err1)
请尝试exec.Commandnetsh、interface、ipv6、set、privacy、state=disable。运行,然后以管理员身份运行或将清单文件嵌入exe文件withhttps://github.com/akavel/rsrc@安德烈。符文?