delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2010/08/24/16:23:01

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-1.9 required=5.0 tests=AWL,BAYES_00
X-Spam-Check-By: sourceware.org
Message-ID: <4C742A06.5020001@bopp.net>
Date: Tue, 24 Aug 2010 15:22:30 -0500
From: Jeremy Bopp <jeremy AT bopp DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: From a cygwin command line, any way to run a normal file using the default Windows program for the file extension?
References: <AANLkTimp-Tz+pJuCzsiFqgyqh5LkFF51bYP=3ON3VXig AT mail DOT gmail DOT com>
In-Reply-To: <AANLkTimp-Tz+pJuCzsiFqgyqh5LkFF51bYP=3ON3VXig@mail.gmail.com>
X-IsSubscribed: yes
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

On 8/24/2010 3:18 PM, cygwin DOT t DOT bnelson AT xoxy DOT net wrote:
> Is there a way to run a non-exe file so that the default program for
> the file's extension is used to open the file?  If I browse to the
> file in the Windows File Explorer I can double click the file and
> Windows will automatically start the program for that given file type.

Use the cygstart program.

-Jeremy

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