Far2 и 7-zip. Работа с архивами

Столкнулся с проблеммой открытия архивов в FAR. Решил перейти на   7-zip. Нижи вы найдете решение проблеммы интеграции 7-zip для работы с архивами в файловом менеджере Far.

Домашние страницы:

http://www.7-zip.org

http://www.farmanager.com

Настройка: 

Качаем и устанавливаем с сайта программу 7-Zip (exe или msi сборку). Затем копируем файл 7z.exe из папки программы в папку c:\windows\

copy C:\Program Files\7-Zip\7z.exe c:\windows\

Закрываем Far. Cоздаем и запускаем файл farmultiarchiv.reg c таким содержимым:

REGEDIT4

[HKEY_CURRENT_USER\Software\Far\Plugins\MultiArc]
"DefaultFormat"="ZIP"
[HKEY_CURRENT_USER\Software\Far2\Plugins\MultiArc]
"DefaultFormat"="ZIP"

[-HKEY_CURRENT_USER\Software\Far\Plugins\MultiArc\ZIP]
[-HKEY_LOCAL_MACHINE\Software\Far\Plugins\MultiArc\ZIP]
[HKEY_LOCAL_MACHINE\SOFTWARE\Far\Plugins\MultiArc\ZIP]
"Extract"="7z x {-p%%P} -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"ExtractWithoutPath"="7z e {-p%%P} -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"Test"="7z t {-p%%P} -r0 -scsDOS -- %%A @%%LQMN"
"Delete"="7z d {-p%%P} -r0 {-w%%W} -scsDOS -- %%A @%%LQMN"
"Add"="7z a {-p%%P} -r0 -tzip {-w%%W} {%%S} -scsDOS -- %%A @%%LQMN"
"AddRecurse"="7z a {-p%%P} -r0 -tzip {-w%%W} {%%S} -scsDOS -- %%A @%%LQMN"
"AllFilesMask"="*"

[-HKEY_CURRENT_USER\Software\Far2\Plugins\MultiArc\ZIP]
[-HKEY_LOCAL_MACHINE\Software\Far2\Plugins\MultiArc\ZIP]
[HKEY_LOCAL_MACHINE\SOFTWARE\Far2\Plugins\MultiArc\ZIP]
"Extract"="7z x {-p%%P} -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"ExtractWithoutPath"="7z e {-p%%P} -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"Test"="7z t {-p%%P} -r0 -scsDOS -- %%A @%%LQMN"
"Delete"="7z d {-p%%P} -r0 {-w%%W} -scsDOS -- %%A @%%LQMN"
"Add"="7z a {-p%%P} -r0 -tzip {-w%%W} {%%S} -scsDOS -- %%A @%%LQMN"
"AddRecurse"="7z a {-p%%P} -r0 -tzip {-w%%W} {%%S} -scsDOS -- %%A @%%LQMN"
"AllFilesMask"="*"

[-HKEY_CURRENT_USER\Software\Far\Plugins\MultiArc\TAR]
[-HKEY_LOCAL_MACHINE\Software\Far\Plugins\MultiArc\TAR]
[HKEY_LOCAL_MACHINE\SOFTWARE\Far\Plugins\MultiArc\TAR]
"Extract"="7z x -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"ExtractWithoutPath"="7z e -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"Test"="7z t -r0 -scsDOS -- %%A @%%LQMN"
"Delete"="7z d -r0 {-w%%W} -scsDOS -- %%A @%%LQMN"
"Add"="7z a -r0 -y -ttar {-w%%W} {%%S} -scsDOS -- %%A @%%LQMN"
"AddRecurse"="7z a -r0 -y -ttar {-w%%W} {%%S} -scsDOS -- %%A @%%LQMN"
"AllFilesMask"="*"

[-HKEY_CURRENT_USER\Software\Far2\Plugins\MultiArc\TAR]
[-HKEY_LOCAL_MACHINE\Software\Far2\Plugins\MultiArc\TAR]
[HKEY_LOCAL_MACHINE\SOFTWARE\Far2\Plugins\MultiArc\TAR]
"Extract"="7z x -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"ExtractWithoutPath"="7z e -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"Test"="7z t -r0 -scsDOS -- %%A @%%LQMN"
"Delete"="7z d -r0 {-w%%W} -scsDOS -- %%A @%%LQMN"
"Add"="7z a -r0 -y -ttar {-w%%W} {%%S} -scsDOS -- %%A @%%LQMN"
"AddRecurse"="7z a -r0 -y -ttar {-w%%W} {%%S} -scsDOS -- %%A @%%LQMN"
"AllFilesMask"="*"

[-HKEY_CURRENT_USER\Software\Far\Plugins\MultiArc\GZIP]
[-HKEY_LOCAL_MACHINE\Software\Far\Plugins\MultiArc\GZIP]
[HKEY_LOCAL_MACHINE\SOFTWARE\Far\Plugins\MultiArc\GZIP]
"Extract"="7z x -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"ExtractWithoutPath"="7z e -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"Test"="7z t -r0 -scsDOS -- %%A @%%LQMN"
"Delete"="7z d -r0 {-w%%W} -scsDOS -- %%A @%%LQMN"
"Add"="7z a -r0 -tgzip {-w%%W} {%%S} -scsDOS -- %%A @%%LQMN"
"AddRecurse"="7z a -r0 -tgzip {-w%%W} {%%S} -scsDOS -- %%A @%%LQMN"
"AllFilesMask"="*"

[-HKEY_CURRENT_USER\Software\Far2\Plugins\MultiArc\GZIP]
[-HKEY_LOCAL_MACHINE\Software\Far2\Plugins\MultiArc\GZIP]
[HKEY_LOCAL_MACHINE\SOFTWARE\Far2\Plugins\MultiArc\GZIP]
"Extract"="7z x -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"ExtractWithoutPath"="7z e -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"Test"="7z t -r0 -scsDOS -- %%A @%%LQMN"
"Delete"="7z d -r0 {-w%%W} -scsDOS -- %%A @%%LQMN"
"Add"="7z a -r0 -tgzip {-w%%W} {%%S} -scsDOS -- %%A @%%LQMN"
"AddRecurse"="7z a -r0 -tgzip {-w%%W} {%%S} -scsDOS -- %%A @%%LQMN"
"AllFilesMask"="*"

[-HKEY_CURRENT_USER\Software\Far\Plugins\MultiArc\BZIP]
[-HKEY_LOCAL_MACHINE\Software\Far\Plugins\MultiArc\BZIP]
[HKEY_LOCAL_MACHINE\SOFTWARE\Far\Plugins\MultiArc\BZIP]
"Extract"="7z x -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"ExtractWithoutPath"="7z e -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"Test"="7z t -r0 -scsDOS -- %%A @%%LQMN"
"Delete"="7z d -r0 {-w%%W} -scsDOS -- %%A @%%LQMN"
"Add"="7z a -r0 -tbzip2 {-w%%W} {%%S} -scsDOS -- %%A @%%LQMN"
"AddRecurse"="7z a -r0 -tbzip2 {-w%%W} {%%S} -scsDOS -- %%A @%%LQMN"
"AllFilesMask"="*"

[-HKEY_CURRENT_USER\Software\Far2\Plugins\MultiArc\BZIP]
[-HKEY_LOCAL_MACHINE\Software\Far2\Plugins\MultiArc\BZIP]
[HKEY_LOCAL_MACHINE\SOFTWARE\Far2\Plugins\MultiArc\BZIP]
"Extract"="7z x -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"ExtractWithoutPath"="7z e -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"Test"="7z t -r0 -scsDOS -- %%A @%%LQMN"
"Delete"="7z d -r0 {-w%%W} -scsDOS -- %%A @%%LQMN"
"Add"="7z a -r0 -tbzip2 {-w%%W} {%%S} -scsDOS -- %%A @%%LQMN"
"AddRecurse"="7z a -r0 -tbzip2 {-w%%W} {%%S} -scsDOS -- %%A @%%LQMN"
"AllFilesMask"="*"

[-HKEY_CURRENT_USER\Software\Far\Plugins\MultiArc\ARJ]
[-HKEY_LOCAL_MACHINE\Software\Far\Plugins\MultiArc\ARJ]
[HKEY_LOCAL_MACHINE\SOFTWARE\Far\Plugins\MultiArc\ARJ]
"Extract"="7z x -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"ExtractWithoutPath"="7z e -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"Test"="7z t -r0 -scsDOS -- %%A @%%LQMN"
"AllFilesMask"="*"

[-HKEY_CURRENT_USER\Software\Far2\Plugins\MultiArc\ARJ]
[-HKEY_LOCAL_MACHINE\Software\Far2\Plugins\MultiArc\ARJ]
[HKEY_LOCAL_MACHINE\SOFTWARE\Far2\Plugins\MultiArc\ARJ]
"Extract"="7z x -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"ExtractWithoutPath"="7z e -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"Test"="7z t -r0 -scsDOS -- %%A @%%LQMN"
"AllFilesMask"="*"

[-HKEY_CURRENT_USER\Software\Far\Plugins\MultiArc\CAB]
[-HKEY_LOCAL_MACHINE\Software\Far\Plugins\MultiArc\CAB]
[HKEY_LOCAL_MACHINE\SOFTWARE\Far2\Plugins\MultiArc\CAB]
"Extract"="7z x -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"ExtractWithoutPath"="7z e -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"Test"="7z t -r0 -scsDOS -- %%A @%%LQMN"
"AllFilesMask"="*"

[-HKEY_CURRENT_USER\Software\Far2\Plugins\MultiArc\CAB]
[-HKEY_LOCAL_MACHINE\Software\Far2\Plugins\MultiArc\CAB]
[HKEY_LOCAL_MACHINE\SOFTWARE\Far2\Plugins\MultiArc\CAB]
"Extract"="7z x -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"ExtractWithoutPath"="7z e -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"Test"="7z t -r0 -scsDOS -- %%A @%%LQMN"
"AllFilesMask"="*"

[-HKEY_CURRENT_USER\Software\Far\Plugins\MultiArc\LZH]
[-HKEY_LOCAL_MACHINE\Software\Far\Plugins\MultiArc\LZH]
[HKEY_LOCAL_MACHINE\SOFTWARE\Far\Plugins\MultiArc\LZH]
"Extract"="7z x -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"ExtractWithoutPath"="7z e -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"Test"="7z t -r0 -scsDOS -- %%A @%%LQMN"
"AllFilesMask"="*"

[-HKEY_CURRENT_USER\Software\Far2\Plugins\MultiArc\LZH]
[-HKEY_LOCAL_MACHINE\Software\Far2\Plugins\MultiArc\LZH]
[HKEY_LOCAL_MACHINE\SOFTWARE\Far2\Plugins\MultiArc\LZH]
"Extract"="7z x -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"ExtractWithoutPath"="7z e -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"Test"="7z t -r0 -scsDOS -- %%A @%%LQMN"
"AllFilesMask"="*"

[-HKEY_CURRENT_USER\Software\Far\Plugins\MultiArc\RAR]
[-HKEY_LOCAL_MACHINE\Software\Far\Plugins\MultiArc\RAR]
[HKEY_LOCAL_MACHINE\SOFTWARE\Far\Plugins\MultiArc\RAR]
"Extract"="7z x -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"ExtractWithoutPath"="7z e -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"Test"="7z t -r0 -scsDOS -- %%A @%%LQMN"
"AllFilesMask"="*"

[-HKEY_CURRENT_USER\Software\Far2\Plugins\MultiArc\RAR]
[-HKEY_LOCAL_MACHINE\Software\Far2\Plugins\MultiArc\RAR]
[HKEY_LOCAL_MACHINE\SOFTWARE\Far2\Plugins\MultiArc\RAR]
"Extract"="7z x -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"ExtractWithoutPath"="7z e -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"Test"="7z t -r0 -scsDOS -- %%A @%%LQMN"
"AllFilesMask"="*"

[-HKEY_CURRENT_USER\Software\Far\Plugins\MultiArc\Z(Unix)]
[-HKEY_LOCAL_MACHINE\Software\Far\Plugins\MultiArc\Z(Unix)]
[HKEY_LOCAL_MACHINE\SOFTWARE\Far\Plugins\MultiArc\Z(Unix)]
"Extract"="7z x -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"ExtractWithoutPath"="7z e -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"Test"="7z t -r0 -scsDOS -- %%A @%%LQMN"
"AllFilesMask"="*"
[-HKEY_CURRENT_USER\Software\Far2\Plugins\MultiArc\Z(Unix)]
[-HKEY_LOCAL_MACHINE\Software\Far2\Plugins\MultiArc\Z(Unix)]
[HKEY_LOCAL_MACHINE\SOFTWARE\Far2\Plugins\MultiArc\Z(Unix)]
"Extract"="7z x -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"ExtractWithoutPath"="7z e -r0 -y {-w%%W} -scsDOS -- %%A @%%LQMN"
"Test"="7z t -r0 -scsDOS -- %%A @%%LQMN"
"AllFilesMask"="*"

ВСЁ.
Скачать: farmultiarchiv.zip (размер: 705 bytes)

Остались или есть ещё вопросы? Задавайте!
(не забудьте указать ссылку на этот пост)




Оставить комментарий

Установка, настройка, мониторинг и администрирование linux, unix, windows систем