reading windows environment variables

5 views
Skip to first unread message

Jason McMahan

unread,
May 16, 2018, 1:57:47 PM5/16/18
to Ruby on Rails: Talk
Could someone please suggest how i could read environment variables from windows?
In cmd i can run 

"%ovinstalldir%bin\win64\test.bat" -version

However i am attempting to do the same in the irb and not sure how i should do that.

Any help is greatly appreciated.

Thank you

Jason McMahan

unread,
May 16, 2018, 2:50:14 PM5/16/18
to Ruby on Rails: Talk
In Irb i am able to run

ENV['OvInstallDir']

Returns the correct path 'c:\program files\'

THank you for any further help.
Reply all
Reply to author
Forward
0 new messages