[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: windows help!

Austin Ziegler

9/26/2003 7:16:00 PM

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?

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
--
austin ziegler * austin@halostatue.ca * Toronto, ON, Canada
software designer * pragmatic programmer * 2003.09.26
* 15.10.16