This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Best way to associate .tar.gz with "tar -xzf"?

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

  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.


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:
Bug reporting:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]