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: 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 Content-Type: text/plain; charset=ISO-8859-1 X-Spamgourmet: Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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