mirror of
https://github.com/nkanaev/yarr.git
synced 2025-05-25 05:29:20 +00:00
15 lines
270 B
Go
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)
|
|
}
|