From: Austin Ziegler Date: 2004-02-26T01:09:23+09:00 Subject: Re: Profile-independent directory specification for NT? On Wed, 25 Feb 2004 22:03:51 +0900, Moran, Craig M (BAH) wrote: > Is there a way to specify a directory in Ruby that is profile-independent > for the Windows NT variants? For example, if I wanted to do this in VBA > for the currently logged in user's My Documents folder, it would look > like this: ProfilePath = Environ("USERPROFILE") & "\My Documents\" > This way, regardless of who is logged in and runs the script, it will > always point to their own My Documents folder. Thanks in advance for the > help- Craig profile_path = "#{ENV['USERPROFILE']}\\My Documents\\" -austin -- austin ziegler * austin@halostatue.ca * Toronto, ON, Canada software designer * pragmatic programmer * 2004.02.25 * 11.08.25