From c47f41e3ae39061da76725981461d79a8c4109b2 Mon Sep 17 00:00:00 2001 From: Nick Powell Date: Mon, 12 May 2014 13:53:40 -0700 Subject: [PATCH] Fix 'start' executable not found in %PATH% --- open/exec_windows.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/open/exec_windows.go b/open/exec_windows.go index b3b9b4d..1ed5c5f 100644 --- a/open/exec_windows.go +++ b/open/exec_windows.go @@ -7,9 +7,9 @@ import ( ) func open(input string) *exec.Cmd { - return exec.Command("start", "", input) + return exec.Command("cmd", "/C", "start", "", input) } func openWith(input string, appName string) *exec.Cmd { - return exec.Command("start", "", appName, input) + return exec.Command("cmd", "/C", "start", "", appName, input) }