delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-0.4 required=5.0 tests=BAYES_05,DKIM_SIGNED,RCVD_IN_DNSWL_NONE,T_DKIM_INVALID |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
Date: | Tue, 24 Aug 2010 15:18:32 -0500 |
Message-ID: | <AANLkTimp-Tz+pJuCzsiFqgyqh5LkFF51bYP=3ON3VXig@mail.gmail.com> |
Subject: | From a cygwin command line, any way to run a normal file using the default Windows program for the file extension? |
From: | cygwin DOT t DOT bnelson AT xoxy DOT net |
To: | cygwin AT cygwin DOT com |
X-Spamgourmet: | |
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 |
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. For instance, I can click on a .xls file and Windows will automatically start Excel and have it open that file. Is there a way to do something similar from a cygwin command line? That is, I'd like to be able to do something like this: cygwin> cd /tmp cygwin> ls a.xls cygwin> runfile a.xls and have it automatically look in the File Types listing of File Explorer and start the associated program to open the file. Thanks! -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |