delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/12/20/19:50:35

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:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type; q=dns; s=default; b=OivJFaJ
Gl1O/7aa5TnKAJyCK7gr0zux2iQcFTav6etmezgfGlmuYPvnRF/GLrp2jF/iTV1t
TIQzEtINzjRpEE27YV0umbrRSPcnKuc1S/c0Q/Ydb8KJXLDzlBiUr39tJYO0TpGn
QWTdM6BsdlBW740vAdidpboi07aSd95/O/v8=
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:mime-version:in-reply-to:references:from:date
:message-id:subject:to:content-type; s=default; bh=4oTOlNRaXxvAZ
chXBMMAc5Vx78A=; b=GOCN0eOIeLFEaXIHQ4XJZdXEuTfhEWoV1P221P7UV96Mq
P43yndrJtyWSrc7O8Gr5XwD1I7eB4WDz/M5bBLxFdHI23LTcXt0zt1vndXhA0my0
XOlrnZbzzOje8loyyfTE8W3kHhxGolyeA+JF4J9V5ZJOaa/EXjtrK6fihjP0Xg=
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_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=HX-HELO:sk:mail-io, H*i:sk:703960a, Hx-languages-length:1348, H*f:sk:703960a
X-HELO: mail-io0-f175.google.com
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=TqM1LYabr2qcK3vfPcr4CFFIAN63DqbYS5gDGtYi1zU=; b=mf4znUuMAHKmKpSxiCS19v3xMPLV9kL30t1eb/FMIFUTkwS0WKXl08FkUJjWBR+0TK Lg7s5NuNXsHzkvfUbPRWJpWv3mT2cG92vdqcqCOSPb1w4NWVSBcvGeUlBYhC4kPbRNIB W+84GfvgnkeFG14pUu2di1FBSXB3NdjGbhOaJP/ZHMnVimWWhTv893iBJlx/VDCaI+vM VQMIbVBxnKBy7en5xnOVkN4BUfhigQWo6DatSz4SKLBeTIuhhT6EaOxY3BYpxiMvAhYL HRHx6a9XQ/zovb6IrljTo0vXCngz/XpZfEBcdwZ9z4DEHTCabJV/AWe9JT/IImhzU+Ix 9dTA==
X-Gm-Message-State: AIkVDXL9lh2p0cOS5E0ERPC7UEBtLs+JyV9QtBdm/3rq547hmzeWzhwyopABrAIixYZlk4zaBoySZp/8p3/zVw==
X-Received: by 10.107.34.74 with SMTP id i71mr3453949ioi.24.1482281419774; Tue, 20 Dec 2016 16:50:19 -0800 (PST)
MIME-Version: 1.0
In-Reply-To: <703960af-96c6-0412-d5a0-35a9d8c169c6@cs.umass.edu>
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> <703960af-96c6-0412-d5a0-35a9d8c169c6 AT cs DOT umass DOT edu>
From: Lee <ler762 AT gmail DOT com>
Date: Tue, 20 Dec 2016 19:50:19 -0500
Message-ID: <CAD8GWsspsx3o+kvOGUQeTbRMBiGugw6Ho+1SFuC4uxgfoO1RDA@mail.gmail.com>
Subject: Re: open IE from command line
To: moss AT cs DOT umass DOT edu, cygwin AT cygwin DOT com
X-IsSubscribed: yes

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 "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.

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

cmd /c start "" https://google.com/
  starts the default browser & opens google.com

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

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

Regards,
Lee

--
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