Skip to content

Instantly share code, notes, and snippets.

@Makeshift
Created September 2, 2022 11:59
Show Gist options
  • Save Makeshift/63ec8f4f05aff81030dd7fbf07c37a9d to your computer and use it in GitHub Desktop.
Save Makeshift/63ec8f4f05aff81030dd7fbf07c37a9d to your computer and use it in GitHub Desktop.
Right-click tar options for Windows 10
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\SystemFileAssociations\.gz]
[HKEY_CLASSES_ROOT\SystemFileAssociations\.gz\shell]
[HKEY_CLASSES_ROOT\SystemFileAssociations\.gz\shell\extract]
@="Extract archive..."
[HKEY_CLASSES_ROOT\SystemFileAssociations\.gz\shell\extract\command]
@="C:\\Windows\\system32\\tar.exe xzf \"%1\""
[HKEY_CLASSES_ROOT\SystemFileAssociations\.bz2]
[HKEY_CLASSES_ROOT\SystemFileAssociations\.bz2\shell]
[HKEY_CLASSES_ROOT\SystemFileAssociations\.bz2\shell\extract]
@="Extract archive..."
[HKEY_CLASSES_ROOT\SystemFileAssociations\.bz2\shell\extract\command]
@="C:\\Windows\\system32\\tar.exe xjf \"%1\""
[HKEY_CLASSES_ROOT\SystemFileAssociations\.xz]
[HKEY_CLASSES_ROOT\SystemFileAssociations\.xz\shell]
[HKEY_CLASSES_ROOT\SystemFileAssociations\.xz\shell\extract]
@="Extract archive..."
[HKEY_CLASSES_ROOT\SystemFileAssociations\.xz\shell\extract\command]
@="C:\\Windows\\system32\\tar.exe xJf \"%1\""
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\*\shell\Compress to .xz archive...\Command]
@="C:\\Windows\\system32\\tar.exe czf \"%1.xz\" \"%1\""
[HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\Compress to .xz archive...\Command]
@="C:\\Windows\\system32\\tar.exe czf \"%1.xz\" \"%1\""
[HKEY_CLASSES_ROOT\Directory\shell\Compress to.xz archive...]
@="Compress to.xz archive..."
[HKEY_CLASSES_ROOT\Directory\shell\Compress to.xz archive...\command]
@="C:\\Windows\\system32\\tar.exe czf \"%1.xz\" -C \"%1\" \"*\""
@Makeshift
Copy link
Author

Extracting single-files is slightly annoying due to how regedit passes the full path to tar, not sure how to fix that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment