From: Niklas Baumstark Date: 2008-08-01T01:36:20+09:00 Subject: Re: How to get special directories? > "/" should get you the home folder in linux surely it should not. > and "C:/Documents and Settings" should work fine on Windows. well, my home dir is under D:/home... but you're right, i could use File.expand_path("~") under linux. i could maybe use COM under windows and use the scripting host to get the directory. but this isn't very elegant. is there no better way? if there is none: is it possible to access COM from ruby? Greetings, Niklas -- Posted via http://www.ruby-forum.com/.