//нажимаю правой кнопкой на папку ( d:/doc ) //добавить к архиву //выбираю путь ( c:/arc/myarc.zip ) //выбираю уровень сжатия ( без сжатия ) //ввожу пароль //выбираю метод шифрования AES-256 //ОК 

Can anyone tell the command console (eats-but for Windows XP-10), so that the steps described above could be implemented?

  • On the 7z website in the FAQ section, everything is there, go and read the keys and how to run everything in the examples from the console in the batch file! - RifmaMan
  • there are simple examples, but there is no indication of the compression method, password, etc. or I did not see - gforce
  • Yes, indeed, but everything seems to be in the help, look in the program itself help (F1) - RifmaMan
  • Notice the Command Line Version -> Switches - RifmaMan

1 answer 1

For details on the keys, see Help 7z (F1), Command Line Version -> Switches

"C:\Program Files\7-Zip\7z.exe" a -sfx "D:\doc1.exe" -psecret -mhe "D:\doc" -mx0

where are the keys:

 -sfx самораспаковывающийся архив; -p задает пароль (secret); -mhe шифрование; -mx0 метод сжатия