delorie.com/archives/browse.cgi | search |
X-Spam-Check-By: | sourceware.org |
To: | cygwin AT cygwin DOT com |
From: | Thorsten Kampe <thorsten AT thorstenkampe DOT de> |
Subject: | Re: [Newbie] Opening Files in a Folder |
Date: | Sat, 25 Feb 2006 15:43:43 +0000 |
Lines: | 18 |
Message-ID: | <p9d95tavyga0.1ic9v5p3pgmsx$.dlg@40tude.net> |
References: | <2124967 DOT 1140838877859 DOT JavaMail DOT chartpacs AT mac DOT com> |
Mime-Version: | 1.0 |
User-Agent: | 40tude_Dialog/2.0.15.1 |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
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 |
* Michael Banks (2006-02-25 03:41 +0100) > Suppose I have a folder on the desktop that contains a number of files. I would like to select only the .jpg files and then open them in a) a particular app if possible, or b) whatever app is associated with the .jpg extension. Wrap your lines. > I think the syntax would look like: > find "C:/path/to/desktop/images" -iname "*.jpg" -print0 | xargs -0 <some command to open these files> > > I don't know what should be substituted for <some command to open these files>. Any ideas? It seems you already know the name of the folder containing the images, so it's rather trivial: cygstart $USERPROFILE/Desktop/images/*.jpg If the images are in sub folders you could use zsh or find: cygstart $USERPROFILE/Desktop/images/**/*.jpg -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |