delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/10/14/11:00:02

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: <460A2971E737D211A1B00008C7A416AD18D3F8@DEVWAGWODX0007>
From: "Bodsch, Norbert" <Norbert DOT Bodsch AT volkswagen DOT de>
To: "'cygwin AT sourceware DOT cygnus DOT com'" <cygwin AT sourceware DOT cygnus DOT com>
Subject: Shell scripts on right mouse
Date: Thu, 14 Oct 1999 16:51:07 +0200
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)

> 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?
> 
> Norbert Bodsch
> Volkswagen AG
> K-DOE-3  IS Entwicklungssteuerung und Fertigungsplanung
> Fabrikplanung und -simulation
> Brieffach 1832
> 38436 Wolfsburg
> Tel. (0 53 61) 9-2 95 03
> Fax (0 53 61) 9-2 48 89
> norbert DOT bodsch AT volkswagen DOT de
> 
> 

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019