delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/12/20/18:32:26

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:references:to:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=pbeCmU2sTda+SccN
G7/uptQweoBOJ8sSqi/NZHkB5Swya3ZnnDTki8myFmz8IFBYZBm3lRvCYZJTrW4X
Rq+7YkFTe26GAu8KVV25vRJvbU4Zxerk9j89KN0p2fzOTqHHtbdZhW/B998jLEEN
dru8K8OZkP2VddaFEPUEVmMfUqM=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:reply-to:subject:references:to:from:message-id
:date:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=kWsHGRSE9ju1RXwjF5ufbO
xsmwM=; b=xiEsnYnsf228Rf9faeTZ8gszswn6oHpFg0Rwp6qkYbNcODy6RP8opw
Nx5gPwzplA7FTc2hLxjjOKYYo+LswZH+ZMJjeM64n4saS0FYm25iQiUw2IMvkwwb
GenIebi1ItVk1dbdifxEkUNV8w8xg+i2iWWlTUPJu6E7lwpeYfBIs=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=ham version=3.3.2 spammy=Lee, moss, Hx-languages-length:881, andrey
X-HELO: mailsrv.cs.umass.edu
Reply-To: moss AT cs DOT umass DOT edu
Subject: Re: open IE from command line
References: <0D835E9B9CD07F40A48423F80D3B5A704BBD5906 AT USA7109MB022 DOT na DOT xerox DOT net> <CAD8GWsu+LWdrLnVJFiteAvK3O1+LOBe08y2anPnPGqk7mTTOSw AT mail DOT gmail DOT com> <149633121 DOT 20161221013826 AT yandex DOT ru>
To: cygwin AT cygwin DOT com
From: Eliot Moss <moss AT cs DOT umass DOT edu>
Message-ID: <703960af-96c6-0412-d5a0-35a9d8c169c6@cs.umass.edu>
Date: Tue, 20 Dec 2016 18:32:07 -0500
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1
MIME-Version: 1.0
In-Reply-To: <149633121.20161221013826@yandex.ru>
X-IsSubscribed: yes

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 "http://www.google.com"
>>> $ 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"  "www.google.com"
>
> I'd say,
>
> cmd /c start "" https://google.com/

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.

Regards -- Eliot Moss

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019