Files
yarr/src/platform/open_win.go
Nazar Kanaev 632412c10e go fmt
2023-02-02 22:06:27 +00:00

16 lines
289 B
Go

//go:build windows
// +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)
}