yarr/src/platform/open_win.go
2021-03-08 15:29:25 +00:00

15 lines
270 B
Go

// +build windows
package platform
import (
"os"
"os/exec"
"path/filepath"
)
func open(input string) *exec.Cmd {
rundll32 := filepath.Join(os.Getenv("SYSTEMROOT"), "System32", "rundll32.exe")
return exec.Command(rundll32, "url.dll,FileProtocolHandler", input)
}