From: Mark Hahn Date: 2001-11-19T05:18:24+09:00 Subject: [ruby-talk:25777] Ruby in windows I was very surprised to find that Dir.pwd in windows returns a path relative to the Ruby directory. Does it do this in the unix world? This is clearly wrong. I need to access mounted Windows volumes. Is there any easier way for me to list the contents of W:\ than this? require 'rbconfig' include Config File.open('run.bat','w') {|f| f.write("w:\r\ndir\r\n")} puts (if ENV.has_key?("OS") && ENV["OS"] =~ /nt/i `cmd.exe /c run.bat` else `command.com /c run.bat` end) If not, then this is a big gap in Ruby's support of Windows. A common use of scripting languages is file manipulation and lacking file support would really knock Ruby out of consideration for windows scripting.