Ruby 初心者スレッド Part 22
■ このスレッドは過去ログ倉庫に格納されています
0335デフォルトの名無しさん
2008/10/03(金) 21:35:41require 'shell'
sh = Shell.new
Dir.glob("text/*.txt").each do |path|
path.gsub!(/\//,"\\")
sh.system("start", "#{path}")
end
というスクリプトを作りましたが
c:/ruby/lib/ruby/1.8/shell/command-processor.rb:352:in `find_system_command':
Command not found(start). (Shell::Error::CommandNotFound)
というエラーが出ます。どうしたもんでしょうか。
■ このスレッドは過去ログ倉庫に格納されています