From: Nobuyoshi Nakada Date: 2008-08-01T16:10:48+09:00 Subject: Re: How to get special directories? Hi, At Fri, 1 Aug 2008 01:36:20 +0900, Niklas Baumstark wrote in [ruby-talk:309687]: > 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? It works with 1.8.7 and 1.8.6-p127 or lator, even on Windows, and is the cross-platform and official recommended way. -- Nobu Nakada