From: Jarmo Pertman Date: 2009-02-01T04:41:31+09:00 Subject: Re: difference in file.join between Linux, win32? Strange, it worked for me correctly under Windows XP when starting script right with .rb file itself, like D:\Projects\Ruby>blah.rb D:/Projects/Ruby But, when starting with ruby.exe: D:\Projects\Ruby>ruby blah.rb . I don't know why it works like this, but you could make it working correctly somehow like this: working_dir = File.expand_path(File.dirname(__FILE__)) Dir.chdir 'substruct' puts dir Jarmo Roger Pack wrote: > in windows > => . -- Posted via http://www.ruby-forum.com/.