diff --git a/console/console_windows.go b/console/console_windows.go index 4853083..c28d2c7 100644 --- a/console/console_windows.go +++ b/console/console_windows.go @@ -87,11 +87,6 @@ func (c *console) buildCmd(args []string) (string, error) { return "", ErrInvalidCmd } var cmds = fmt.Sprintf("cmd /C chcp %s > nul & ", codePage(c.coder)) - if file, err := exec.LookPath(args[0]); err != nil { - return "", err - } else if args[0], err = filepath.Abs(file); err != nil { - return "", err - } for _, v := range args { cmds += v + ` ` }