>>349
修正
>IO.popen("where notepad") { |io| resText = io.read }

# 標準エラー出力を、子プロセス側で標準出力にリダイレクトする
# 標準エラー出力と標準出力がマージされる

IO.popen( "where notepad", :err=>[:child, :out] ) { |io| resText = io.read }