Yea, I know, but I thought that DOS commands which were part of the shell would not work in Perl since they are not true executables. Perhaps I am thinking of older versions of Perl. It has been a LONG time since I had to shell out to get something done.......
Anyway, If you REALLY need to get the browser to open in the users preferred browser, then you will have to do some registry digging to find default browser and go from there. HKCR\http(?:s?)\shell\open\command\ This will/should give you the path to the app they use to open http by default. Not sure. If this DOESNT do it, then do the same thing with HKCR\.htm(?:l?)( by the way, is this right? I don't have my Mastering regex book with me. Should it be HKCR\.htm(?:l)? , or perhaps just HKCR\.html? Anyway, I digress.... ) If you REALLY have to accommodate the users preferred browser, then one way or another, you have to do a lot of extra work. On Windows 98+, you are pretty much guaranteed that IE will be on the machine in some form or another..... > -----Original Message----- > From: Morbus Iff [mailto:[EMAIL PROTECTED] > Sent: Friday, June 01, 2001 07:29 > To: perl-win32-gui-users@lists.sourceforge.net > Subject: RE: [perl-win32-gui-users] Opening a *New* Browser Window? > > > >`start iexplore.exe http://www.activestate.com` > >use backticks to call the "start" command in the command shell, then > >pass an explicite exe name followed by the arguments. I tried it > >without the iexplore.exe and it only opened the window. I > believe this > >is something that is wrong my machine since the same thing > happens when > >I click on a link within Outlook. Therefore, If you just put > > > >`start http://www.myurl.com`; > >I might actually work the way you want it. > > I've tried that previously - doesn't work in all versions of > Netscape/IE/Mozilla. Sadly enough, I haven't tried Opera. At > this point, as > well, the above isn't foolproof - it doesn't help people who > have screwed > up their PATH, or for those who have renamed files. > > The "start" thing works for the same reason you can go to > your Start menu, > choose "run" and type in a URL to be taken there by your > default browser. > > -- > ICQ: 2927491 / AOL: akaMorbus > Yahoo: morbus_iff / Jabber: [EMAIL PROTECTED] > [EMAIL PROTECTED] / http://www.disobey.com/ > > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Perl-Win32-GUI-Users@lists.sourceforge.net > http://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users >