delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/02/06/01:47:48

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
Message-ID: <003701c2cdab$a39025f0$0501a8c0@shuttle>
Reply-To: "Jamshid Afshar" <jamshid AT io DOT com>
From: "Jamshid Afshar" <jamshid AT io DOT com>
To: <cygwin AT cygwin DOT com>
Subject: Best way to associate .tar.gz with "tar -xzf"?
Date: Thu, 6 Feb 2003 00:47:37 -0600
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106

On Windows XP, I created a .tar.gz file type under Folder Options=>File
Types tab. I then set the "Opens with" to a one-line batch file
wintargz.bat:

  FOR %%F IN (%1) DO pushd %%~pF && tar -xvzf %%~nxF

This allows double-clicking on a foo.tar.gz file to automatically cause it
to be uncompressed and untarred. FYI, it is necessary to cd to that
directory and untar only the filename portion without the path, otherwise
you get the error appended below.

Just thought I would share this. Maybe somebody has a better way to
associate cygwin utilities with the Windows explorer.

--Jamshid

W:\Downloads>tar -tzf W:\Downloads\privoxy-3.0.0-stable-src.tar.gz
tar (child): Cannot execute remote shell: No such file or directory
tar (child): W\:\\Downloads\\privoxy-3.0.0-stable-src.tar.gz: Cannot open:
I/O error
tar (child): Error is not recoverable: exiting now

gzip: stdin: unexpected end of file
tar: Child returned status 2
tar: Error exit delayed from previous errors


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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