David Masover
4/17/2009 6:03:00 PM
On Friday 17 April 2009 11:12:27 Kyle Schmitt wrote:
> May not be pretty, but you can always do
>
> username=%x[echo %USERNAME%].strip
[...]
> That said I think there _is_ s nice builtin way of accessing windows
> environmental variables in ruby, but it's been so long I'd probably
> just shell out using %x :)
ENV['USERNAME']
Was that so hard? Or does that not work on Windows?