Opening pages in IE from the command line
May 25, 2006 11:52 PM Subscribe
I'm writing a (perl) script that opens up files in IE. I'm having problems getting them to open in the current IE window and not a new window.
posted by inkyz to Technology (5 answers total)
The closest solution I've found is the "start" command. With urls, if you do "start http://www.cnn.com" and then "start http://www.amazon.com", it opens up the amazon url in the same browser window that it opened the cnn url in. This is the behavior I want.
But with local files, if you do "start foo.html" and then "start bar.html", it opens bar.html in its own IE window. I want to get the same-window behavior for files too -- I tried doing "start file:////bar.html" but it continued to open in a new window.
Any ideas? I've also been playing around with the Win32 perl modules, but haven't had any luck getting them to use the same window ever.