reading windows environment variables

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

reading windows environment variables

Jason McMahan
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

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/33fa9470-621c-4836-8063-2f8e77d6461b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: reading windows environment variables

Jason McMahan
In Irb i am able to run

ENV['OvInstallDir']

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

THank you for any further help.

On Wednesday, May 16, 2018 at 12:57:47 PM UTC-5, Jason McMahan wrote:
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

--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ec9a5add-3a25-464f-b4cc-92f7e34effd6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.