We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e1194ff commit 627de42Copy full SHA for 627de42
open/exec_windows.go
@@ -12,7 +12,7 @@ import (
12
13
var (
14
cmd = "url.dll,FileProtocolHandler"
15
- runDll32 = filepath.Join(os.Getenv("SYSTEMROOT"), "System32", "rundll32.exe")
+ start = filepath.Join(os.Getenv("SYSTEMROOT"), "System32", "start.exe")
16
)
17
18
func cleaninput(input string) string {
@@ -21,7 +21,7 @@ func cleaninput(input string) string {
21
}
22
23
func open(input string) *exec.Cmd {
24
- cmd := exec.Command("start", "/wait", input)
+ cmd := exec.Command(start, "/wait", input)
25
//cmd.SysProcAttr = &syscall.SysProcAttr{HideWindow: true}
26
return cmd
27
0 commit comments