Florian Gross wrote:

> Martin Ankerl wrote:
>
>> I know that in Linux I
>> can get this path with
>>
>> Dir.chdir
>> homewd = Dir.pwd
>>
>> Does this work in windows too? I have currently no access to a windows
>> machine.
>
>
> Based on my test on Windows XP, yes.
>
> But you might want to use the following instead:
>
> home_dir = File.expand_path("~")
>
> Regards,
> Florian Gross

Neither work on my XP Pro machine, HOME isn't a defined environment 
variable, though HOME_PATH is, if that means anything.

-- Brian Palmer