diff --git a/open/exec_windows.go b/open/exec_windows.go index c3ef088..3ad667d 100644 --- a/open/exec_windows.go +++ b/open/exec_windows.go @@ -10,8 +10,8 @@ import ( ) var ( - cmd = "url.dll,FileProtocolHandler" - runDll32 = filepath.Join(os.Getenv("SYSTEMROOT"), "System32", "rundll32.exe") + cmd = "url.dll,FileProtocolHandler" + runDll32 = filepath.Join(os.Getenv("SYSTEMROOT"), "System32", "rundll32.exe") ) func cleaninput(input string) string { @@ -20,7 +20,7 @@ func cleaninput(input string) string { } func open(input string) *exec.Cmd { - return exec.Command(runDll32, cmd, input) + return exec.Command(runDll32, cmd, cleaninput(input)) } func openWith(input string, appName string) *exec.Cmd {