I know multiple ways of getting the computer's name on ruby and the one
I use is

ENV["COMPUTERNAME"]

Here is my question.
How to practically use it?

When changing directory to desktop or certain directories you will need
the computer's name and I don't like typing my pc's name every time. Is
there a solution to this?

I tried finding the answer to my question every where but I couldn't.

Thanks.

-- 
Posted via http://www.ruby-forum.com/.