Files
yarr/src/platform/open_win.go
2025-03-18 17:14:58 +00:00

15 lines
271 B
Go

//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)
}