o.k. - i suk with windows.
any clue how one would determine the path of, and exec IE5 in windoze? do i
need to assume, as in unix, that it should be in the path? does ENV[‘PATH’]
do the same thing? could i be any more clueless? 
any links you windoze guys could suggest?
thanks!
-a
···
====================================
Ara Howard
NOAA Forecast Systems Laboratory
Information and Technology Services
Data Systems Group
R/FST 325 Broadway
Boulder, CO 80305-3328
Email: ara.t.howard@noaa.gov
Phone: 303-497-7238
Fax: 303-497-7259
The difference between art and science is that science is what we understand
well enough to explain to a computer. Art is everything else.
– Donald Knuth, “Discover”
~ > /bin/sh -c ‘for lang in ruby perl; do $lang -e “print "\x3a\x2d\x29\x0a"”; done’
====================================
If you just need to open an URL you can start #{url}
and windows will fire
the default web browser (guess which?).
s,
Rodrigo
···
----- Original Message -----
From: “Ara.T.Howard” ahoward@fsl.noaa.gov
Newsgroups: comp.lang.ruby
To: “ruby-talk ML” ruby-talk@ruby-lang.org
Sent: Friday, September 26, 2003 3:46 PM
Subject: windows help!
o.k. - i suk with windows.
any clue how one would determine the path of, and exec IE5 in windoze? do
i
need to assume, as in unix, that it should be in the path? does
ENV[‘PATH’]
do the same thing? could i be any more clueless? 
any links you windoze guys could suggest?
thanks!
-a
Ara.T.Howard wrote:
o.k. - i suk with windows.
any clue how one would determine the path of, and exec IE5 in windoze? do i
need to assume, as in unix, that it should be in the path? does ENV[‘PATH’]
do the same thing? could i be any more clueless? 
If you wanna go the COM route:
require ‘win32ole’
ie = WIN32OLE.new(‘InternetExplorer.Application’)
ie.visible = true
ie.navigate(‘http://ruby-lang.org’)
Otherwise, try:
start iexplore
(The start dealy is a little bit of magic … it’s not just in the path,
or at least not on my machine).
···
–
Chris
http://clabs.org/blogki
Why do you need to exec IE?
It is possible – there are some difficulties – to simply launch an HTML
file with Windows (NT/2000/XP at least) and that will launch the user’s
default web browser. (You can usually launch a .htm and get IE, and .html
will get the default.)
I did this very recently. You have to use:
#{ENV['COMSPEC']} /c #{s}
Where s is the path to the HTML file you wish to open.
-austin
···
On Sat, 27 Sep 2003 03:46:34 +0900, Ara.T.Howard wrote:
any clue how one would determine the path of, and exec IE5 in windoze?
do i need to assume, as in unix, that it should be in the path? does
ENV[‘PATH’] do the same thing? could i be any more clueless? -)
any links you windoze guys could suggest?
–
austin ziegler * austin@halostatue.ca * Toronto, ON, Canada
software designer * pragmatic programmer * 2003.09.26
* 15.10.16
(The start dealy is a little bit of magic … it’s not just in the path,
or at least not on my machine).
It’s a command internal to the command interpreter which gets
spawned by the backtick operator. This solution has the drawback
of launching a DOS console. A 3d possibility is the following:
require ‘Win32API’
SW_SHOWNORMAL = 1
mydoc = ‘index.html’
se = Win32API.new(
‘shell32’,
‘ShellExecute’,
[‘L’,‘P’,‘P’,‘P’,‘P’,‘L’],
‘L’ )
se.Call(0,‘open’,mydoc,0,0,SW_SHOWNORMAL)
This will launch the correct application associated with
“mydoc”, not just html.