Incorrect command line 7zip что делать
Ok, this one has been driving me nuts for a couple of weeks now, ever since I rebuilt my system and installed Windows 7 64-bit. I have been using 7-zip for years, and kept on using it long after Windows gained excellent in-shell support for .ZIP folders, because 7-zip handles RAR, TAR and other formats, and unlike WinRAR it’s free and open source. However, after installing it on the 64-bit edition of Windows 7 I consistently got an “Incorrect Command Line” error trying to open RAR archives by double-clicking them in Explorer. If I right-clicked the archive and selected 7-zip -> Open Archive it worked fine. Not a big deal, but I’m the kind of guy to be bothered by this stuff until I get it fixed.
Today I noticed something interesting. If I right-clicked the file and chose Open With -> 7-zip GUI, I got the same error. However if I right-clicked and chose Open With -> 7-zip File Manager it worked fine, and got me to the archive folder view I wanted. For those of you not familiar with the different versions of 7-zip that come in the default install, there are three: 7-zip Console, 7-zip GUI, and 7-zip File Manager. Now I don’t understand exactly how 7-zip GUI differs from File Manager, but I’ll go out on a limb and assume it’s a GUI view of a single archive, rather than an Explorer-like Window in which you can navigate to different folders. Whatever. All that matters to me is that when I went into Control Panel -> Default Programs -> Associate a file type or protocol with a program, selected the .rar file extension, and clicked Change Program I was able to choose 7-zip File Manager as the default, and from that point onward it worked as it should. Tada!
Данные после конца блока полезных данных
Никаких проблем с информацией внутри не будет, так как 7-Zip уже завершил работу, и остается нажать «Закрыть».
Отказ в доступе
Часто пользователи при добавлении новых файлов через меню 7-Zip сталкиваются с ошибкой «Отказано в доступе». Существует 3 варианта решения:
- Проверить корректность работы антивируса. Не блокирует ли он файл, запрещая активировать архив на компьютере. Достаточно отключить программу и открыть документ.
- Архиватор 7-Zip предполагает установку паролей. Возможно, требование ввести ключ от файла не отображается, а пользователь сразу получает отказ доступа. Единственный способ проверить это – обратиться к правообладателю сжатого материала.
- Если файл открывается не из администраторской директории, то нужно поменять учетную запись или открыть архив через главного пользователя.
Иные проблемы говорят о том, что файл битый. Попробуйте воспользоваться не 7-Zip, а другим распаковщиком или просто скачайте документ заново.
2 Answers 2
There are 2 mistakes in the batch code.
The first one is not making sure that path assigned to rootpath does not end with a backslash resulting in %%D containing a path with two successive backslashes.
Two successive backslashes in path caused by this coding omission mistake depends on parameter string on calling the batch or when the batch file is executed from root of a drive because in this case %cd% expands to a path consisting of drive letter, a colon and a backslash. %cd% expands to a path without a backslash at end if current directory is not root directory of a drive. However, this mistake is not critical.
The second one is the real problem on using a directory path containing a critical character like a space or one of these characters: &()[]<>^=;!'+,`~
%%D.7z and %%D\* are not enclosed in double quotes making the parameters list for 7za.exe invalid especially with 1 or more spaces in path.
How I found that out?
I inserted command echo left of 7za to see what would be executed in the loop. I don't have 7-Zip installed and therefore needed the echo to test the batch file.
If this batch file is executed on always the same computer where path to 7za.exe is known, it would be good to specify 7za.exe with full path enclosed in double quotes in the batch file.
For understanding the used commands and how they work, open a command prompt window, execute there the following commands, and read entirely all help pages displayed for each command very carefully.
Добрый день! На сервере запущен батник который запускает архивацию 7-zip большой папки с доками, так вот в логах 7-zip пишет system error и прерывает архивирование --> архив не создается. помогите разобраться? как определить причину ошибки? вот часть лога
Найти причину падения JVM при выполнении java программы. SIGSEGV
здравствуйте всем! помогите решить данную проблему, вот лог к сожалению тут можно до 15000.
Проблема с русскими именами файлов при архивации их с использованием 7z.exe с помощью батника
Когда в батнике test.cmd чтонить архивируешь с русскими буквами, то 7z выдает вывод в крякозябрах.
Обновление утилиты ViruLogs (операции копирования, скачивания, архивации в Zip)
Еще раз нужна Ваша помощь. На выходе должен получиться архив формата Zip, совместимый с Windows. .
Найти причину ошибки при запуске новой формы
Есть две формы. Из программы загружаю вторую и передаю на неё данные. Form1: private void.
Вы конец лога переведите в нормальную кодировку. Тогда и будем смотреть.
Опции компиляции, объем архивируемых данных, тип файловой системы и версию архиватора тоже неплохо было бы озвучить.
Опции компиляции, объем архивируемых данных, тип файловой системы и версию архиватора тоже неплохо было бы озвучить.
-t7z не нужно (по умолчанию)
-scsWIN не нужно (по умолчанию), не поддерживается командой u
-mhe=off не нужно (по умолчанию)
@%$SRC% не понял, что за ключ
-ssw не поддерживается командой u
основная ошибка в >>, т.к. нельзя использовать в синтаксисе обновления (создания) архива. Начните от простого к сложному, например
как я понял это переменная с путем до файла- откуда брать пути какие файлы архивировать, согласен наверно костыль, просто там сначала были прописаны три папки архивировать.
Добавлено через 1 минуту
-t7z не нужно (по умолчанию)
-scsWIN не нужно (по умолчанию), не поддерживается командой u
-mhe=off не нужно (по умолчанию)
Ключи были в исходном батнике я их оставил
Добавлено через 1 минуту
основная ошибка в >>, т.к. нельзя использовать в синтаксисе обновления (создания) архива. Начните от простого к сложному, например
не понял почему, а как же с логированием, у меня лог файл должен отправляется на почту
Добавлено через 1 минуту
Изменил, работает, что дальше оставить или попробовать оптимизировать на более сжатие? дело в том что вначале батник работал пару дней а потом начал выбивать System ERROR
Cdelphi78, посмотрите в сторону ключа -so
п.с. справка рулит
Разархивировать zip-файл в Командной строке с использованием 7-Zip
Добрый вечер! Парни, дико извиняюсь, наверно уже ни раз обсуждалось в разделе, но быстро поискав.
Помогите найти причину ошибки при компиляции программы со списком
По завершении компиляции выходит ошибка (выделено красным): Программа для реализации списка.
Как в PHP определить причину ошибки? где смотреть логи или что там еще?
ситуация такова. есть работающее приложение пхп. пытаюсь перенести его на свою локальную машину.
Ошибка памяти при выполнении, при компиляции не выводит ошибки
ПОмогите плс программа вводит строку символов до точки, а после вычисляет процент согласных в этой.
I just installed windows 7 RTM (I get it for free early because i am a part of msndaa) And it is fairly buggy
The file associations are sporadic, I tried to select all the file associations within the 7-zip gui, yet it doesn't do all of them (for example, the 7z extension is not set to open with anything, yet zip is now associated to open with 7-zip)
also, when i do try to open files with 7-zip by double clicking on them in windows explorer, i get a window saying 'Incorrect command line"
however, right clicking the file and going to 7-zip > extract here works fine
I am using Windows 7 (build 7600, the RTM build) and 7-zip 4.65 64 bit. anyone else having these problems?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Sorry, by 'it' i mean 7-zip is buggy on windows 7. I don't see an edit option here.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Right Click on the 7-Zip icon and select "Run as Administrator". It will ask you if you allow the program to make any changes to the computer and you confirm. After that you can select all file types you want 7-zip to handle.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
well perhaps there should be a check to see if the user has administrative rights when they try to set the file extensions. As I have no idea when i should run certain programs 'as an administrator', and i think its up to the individual programs themselves to handle this
Maybe like have the little apply button with the windows security shield next to it, like all of the windows utilities have. Example:
when the user clicks the apply button when setting things that require administrative privileges, 7zip can just check to see if you have those privileges and then if not, ask for the password / dialogue box and stuff.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Also…(why is there no edit button??) This does not fix the problem that double clicking on archive files associated with 7zip in windows 7 just results in a 'incorrect command line ' error box.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm on Windows 7 x64 RTM and 7-zip works fine for me. Previously I was running v4.xx, now I'm running the new v9.xx beta.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well i am running 9.07 beta and i still get the problem.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Can sourceforge make their forums any more buggy? the first link is supposed to be this:
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Work fine for me, Windows 7 Ultimate x64 and 9.07 beta, tested in other workstations without any problem too.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Well, Its not working for me, which means that something is going on….I even uninstalled 7zip and renistalled the 9.07 beta, and I'm still getting this issue.
It seems to be how 7zip handles adding itself as the default program to open these files, as zip files don't work (give a 'incorrect command line' error), but 7z and rar files work fine. And right clicking -> open with -> 7-Zip GUI gives the same 'incorrect commandline error'.
Here is what i'm seeing :
And for the record, i'm on windows 7 RTM build 6.1.7600, NOT the RC or Beta or any other version…. I'm thinking some of these "works for me" posts are from the RC and Beta versions…
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Works for me on Win7 RTM both 32 and 64 bits. I have never gotten the error you mention, and I use 7zip all day long, with .zip, .7z and .rar files.
I had to use "run as admin" to set up 7z as the default handler for the files, but aside from that everything's run well.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
i can confirm it won't work unless you're logged in as admin or don't use UAC (by default UAC is on).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
by "it won't work" i mean it can't set associations. it checks the box but after i close and reopen the dialog the check will be gone.
once i run it as admin and set associations it will stick.
about the lack of editing: i guess it's because the forums are usually available via mailing lists too, and there's no edit option for obvious reasons.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I am not at my house at the moment (which has the computer that my windows 7 install is installed on), so I cannot check to see if the default account that gets set up when you install windows 7 is actually an administrator account or just a 'user' account
But, i have tried right clicking 7zip.exe or whatever its called and selecting "run as administrator", i click the "yes" button when UAC asks me and then i go to the options, select all associations and then click "OK", but then that does not make .zip files work when i double click them, i still get the "incorrect command line" error, but if i go back to the 7-zip options, it still shows all the extensions (including zip which is the one giving me issues) as associated with 7 zip.
I will try turning UAC off when i get home, but the fact that its not recreating whatever registry key when i try to re associate the extension to 7zip seems like a bug to me. I will also try reassociating zip with windows or winrar or some other program, then try having 7-zip set the association back to itself.
Maybe it got removed when i ran CCleaner on some occasion, but 7-zip SHOULD recreate any registry keys or whatever it needs to do to associate zip files correctly with 7zip, and thats what i am saying is the bug. I also remember trying to change the association by right clicking > properties > open with > selecting 7-zip.exe, and maybe THATS why its throwing a fit, but im not sure. But again, why is 7zip not resetting the association when i select it in options?
and the fact that there has not been a beta release in 2 months or a stable release in 8, makes me think that some minute detail got changed in windows 7 that 7-zip doesn't like.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Работа программы 7-Zip осуществляется благодаря взаимодействию команд и операторов. Для этого требуются подходящие условия, что обеспечивается не всегда. Поэтому возникает ошибка контрольной суммы и другие проблемы при распаковке архива приложением 7-Zip. В этой статье вы найдете решение частых неполадок в работе архиватора.
Как восстановить архив
- Запустите WinRAR, через интерфейс выберите Tools, а затем – Repair archive.
- Открыть поврежденный архив не получится, поэтому создайте новый и перейдите в папку к файлу с потерянными пакетами.
- Перед восстановлением щелкните один раз по названию.
- Иногда требуется указать путь для восстановленного архива и его формат. Расширение должно оставаться тем же, что было до потери информации. Если все указано верно, нажмите ОК и дождитесь окончания работы WinRAR.
Если приложение справится и ошибка архива 7-Zip исчезнет, то загружать файл заново не придется.
Проблема может возникать постоянно. Для решения систематического сбоя проверьте оперативную память и жесткий диск программным обеспечением Aida.
Unsupported command 7 Zip
Ошибка «Unsupported command» в 7-Zip возникает совместно с указанием места расположения файла. Но локальная ссылка не представляет ничего интересного, так как решение проблемы кроется не в ней.
Установка архиватора 7-Zip заканчивается тем, что пользователь устанавливает связь между программой и сжатыми данными. Для этого нужно указать ярлык программы.
Разработчики предоставили два варианта ярлыка, поэтому возникает ошибка.
Правильный выбор – 7zFM, а не 7zG. В последнем случае программе отправляется команда открыть файл через нерабочий ярлык.
- Откройте файловый менеджер через меню «Пуск».
- «Сервис» – «Настройки».
- Во вкладке «Система» снимите галочку в окошке рядом с проблемным форматом. Щелкните ОК.
Теперь можно попробовать запустить документ заново.
Ошибка контрольной суммы CRC
Такая ошибка возникает из-за того, что скачивание архива сопровождалось потерей пакетов. Во время загрузки происходили ошибки, что актуально для нестабильного интернета, когда теряется связь.
Чаще с такой проблемой сталкиваются пользователи с большими файлами, загрузка которых длится несколько часов. При этом объем документов совпадает, но только округленные значения, так как несколько битов все равно потеряно.
- Проблему с распаковкой 7-Zip архива можно решить до возникновения ошибки, используя программное обеспечение Download Master. Потерянный пакет вынуждает начинать загрузку заново.
- Другой вариант – восстановить архив. Рекомендуется воспользоваться архиватором WinRAR. Если расширение файла не поддерживается, то подойдет программа Universal Extractor.
WinRAR удобен тем, что имеет встроенную функцию для восстановления архивов, где некоторое количество пакетов потеряно.
Поврежденный архив
Приложение исправляет проблему поврежденных архивов. Поддерживаются все известные методы сжатия. Интерфейс не содержит лишних кнопок, поэтому понятен и прост.
Достаточно указать путь к сжатому файлу и нажать OK.
Открыть архив удается почти всегда. Если ситуация повторилась, проверьте компьютер на вирусы, так как они могут перехватывать пакеты. Это разрушает структуру сжатого файла, делая его недоступным пользователю.
Сайт 7-Zip не открывается
Обновить 7-Zip для исправления ошибок можно на официальном сайте разработчика. Но сейчас пользователи испытывают трудности с доступом к ресурсу, поэтому скачайте архиватор 7-Zip бесплатно на нашем сайте.
37 thoughts on “ 7-zip Incorrect Command Line Opening RARs ”
Thanks so much! You just helped me fix some pretty constant irritation with this fix. YOU ARE THE MAN. Or woman. Whichever you are, you’re THE it.
Hey, thanks. I’ve been plagued with this for months.
You don’t have to go into Control Panel, though…if you look at the 7zip folder in Start -> Programs, you can run the file manager there, and under options you can associate 7zip with all kinds of archives.
Thx very much! Pls keep sharing. :)
Thanks mate much appreciated
Rock and roll. I swear when I installed 7-Zip I elected to associate it with tar files which is why I was so annoyed it didn’t work. After trying your suggestion, which worked, I rechecked the file associations and 7-zip reported that no files were associated. So I set them and restarted 7-zip…still no files associated.
A quick check of the 7-zip site shows that one must run 7-zip as administrator (even though I’m an admin user on my machine, I still had to right click on 7-zip FM and select Run as administrator). Running as administrator I set the file associations, applied the changes and restarted 7-zip. File associations now set.
Anyway, thanks for the info and helping smooth my taring.
I love 7-Zip, but that issue drove me nuts, now it works! Thanks.
great it worked, thanks
Had same problem on Windows 7 32 bits. Thanks fro sharing the soluce man.
Best regards.
This is exactly the information that I was looking for. I can now open files with no trouble! Thanks so much! :)
thank you so much!
not a huge bug, but it made me insane for months! now it works out perfect!
Not much more I can say… (Fist Pump) “Right on”.
THANK YOU. Just spent forever downloading a .rar file on my terribly slow connection and got this error. Thought it was a corrupt file. YOU HAVE MADE MY DAY.
I'm doing a batch script so I can compress multiple directories inside a specific folder.
The thing is it works perfectly if the folder is at C:\something, but if I try to do the same to a folder in i.e E:\something, I get an error.
The script is this:
Example of how it works normally:
Example of how it fails:
Of course, I also tried to execute the script in the same folder and I checked that it works when I pass the location as an argument. Thanks.
Не удается открыть файл
Архивный файл открывается через контекстное меню.
Кликните по документу правой кнопкой мыши, выберите раздел 7-Zip, затем – «Открыть архив».
Если это не дало результата, попробуйте следующие варианты:
- Воспользоваться аналогами, например WinRAR. Иногда достаточно переустановить 7-Zip, и ошибка исчезает.
- Установить на компьютер программу, восстанавливающую битые архивы, и извлечь файлы через нее.
Убедитесь, что расширение документа соответствует возможностям разархиватора.
Неподдерживаемый метод
Если некоторые файлы извлечены из архива, а другие нет, то пользователь увидит ошибку, что определенный метод не поддерживается в программе 7-Zip.
Иногда быстрее воспользоваться другим распаковщиком. Если аналогов на компьютере нет, то обновите 7-Zip до последней версии.
С подобной ошибкой встречаются пользователи, скачивающие документы в формате «zipx». Новые методы, разработанные WinZip, позволяют сократить размер файла, но другим приложениям пришлось выпускать обновления, чтобы решить проблему.
Читайте также: