delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com> |
List-Archive: | <http://sourceware.cygnus.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sourceware DOT cygnus DOT com> |
List-Help: | <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs> |
Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
Message-ID: | <3AC9A1611DF4D211AA8E00105AA56D8A049445@iis000.microdata.fr> |
From: | Bernard Dautrevaux <DAUTREVAUX AT microprocess DOT com> |
To: | "'Bodsch, Norbert'" <Norbert DOT Bodsch AT volkswagen DOT de>, |
"'cygwin AT sourceware DOT cygnus DOT com'" <cygwin AT sourceware DOT cygnus DOT com> | |
Subject: | RE: Shell scripts on right mouse |
Date: | Thu, 14 Oct 1999 20:21:59 +0200 |
MIME-Version: | 1.0 |
X-Mailer: | Internet Mail Service (5.5.2448.0) |
X-MIME-Autoconverted: | from quoted-printable to 8bit by delorie.com id OAA06355 |
> -----Original Message----- > From: Bodsch, Norbert [mailto:Norbert DOT Bodsch AT volkswagen DOT de] > Sent: Thursday, October 14, 1999 4:51 PM > To: 'cygwin AT sourceware DOT cygnus DOT com' > Subject: Shell scripts on right mouse > > > > Hello, > > does anyone know how to run a shell script on a selected > file on the right > > mouse button, e.g.: > > For a postscript file "file.ps" selected in NT explorer I > want to gzip it. > > So making a new command for gzipping a ps-file in the > registry works (gzip > > "%1"), but the new file has the name "file.ps.gz", which > has to be renamed > > to "file.gz.ps" for it can be automatically opened with > Ghostview. What I > > want is a command like this: > > > > #! bash > > # gzip-ps.sh > > B=`basename $1 .ps` > > gzip $1 > > mv $1.gz $B.gz.ps > > > > Has anyone done such a thing? > > Placing a command like '"path to bash.exe" "path to gzip-ps.sh" "%1"' for action "gzip" of file type "PS file" should do the trick, or do I misunderstand something? HTH Bernard -------------------------------------------- Bernard Dautrevaux Microprocess Ingéniérie 97 bis, rue de Colombes 92400 COURBEVOIE FRANCE Tel: +33 (0) 1 47 68 80 80 Fax: +33 (0) 1 47 88 97 85 e-mail: dautrevaux AT microprocess DOT com b DOT dautrevaux AT usa DOT net -------------------------------------------- -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |