This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: open IE from command line

On 12/20/16, Eliot Moss wrote:
> On 12/20/2016 5:38 PM, Andrey Repin wrote:
>> Greetings, Lee!
>>>> How to open a web page (remote or local) or launch IE from the
>>>> mintty/bash
>>>> command line?
>>>> I've tried the following:
>>>> $ cygstart "";
>>>> $ cygstart index.html # local page
>>>> $ "/cygdrive/c/Program Files/Internet Explorer/iexplore.exe"
>>>> $ cygstart "/cygdrive/c/Program Files/Internet Explorer/iexplore.exe"
>>>> If IE is already open, the first two examples work, but otherwise,
>>>> for all 4, IE flashes a window, which immediately closes.
>>> how about
>>> cmd /c "C:\Program Files\Internet Explorer\iexplore.exe"
>>> ""
>> I'd say,
>> cmd /c start ""
> Both seem to start the *default* browser, in my case, Firefox.
> You need to be explicit if you want IE and it's not your default.

I don't have IE as the default browser & at least for me:

cmd /c start ""
  starts the default browser & opens

cmd /c "C:\Program Files\Internet Explorer\iexplore.exe"  ""
  starts the 64 bit version of IE & opens

cmd /c "C:\Program Files (x86)\Internet Explorer\iexplore.exe"  ""
  starts the 32 bit version of IE & opens


Problem reports:
Unsubscribe info:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]