From: Shashank Agarwal Date: 2008-08-01T01:29:35+09:00 Subject: Re: How to get special directories? Niklas Baumstark wrote: > hi all, > > how can i get ruby to get me some special directories, such as the > home-folder on linux or "documents and settings" on windows? is there > already some functionality available to do this or will i have to use > platform-native functions (for example COM on windows)? > > Greetings, > Niklas I'm not sure if this'll work, but "/" should get you the home folder in linux, and "C:/Documents and Settings" should work fine on Windows. -- Posted via http://www.ruby-forum.com/.