module Mixlib::ShellOut::Windows::Utils
def self.which(cmd)
which() mimicks the Unix which command
def self.which(cmd) ENV['PATH'].split(File::PATH_SEPARATOR).each do |path| exe = find_executable("#{path}/#{cmd}") return exe if exe end return nil end