Shell scripts on right mouse

Bodsch, Norbert Norbert.Bodsch@volkswagen.de
Thu Oct 14 07:58:00 GMT 1999


> 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.bodsch@volkswagen.de
> 
> 

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com



More information about the Cygwin mailing list