Menu

Give password in the command-line ?

2010-08-03
2012-12-08
  • arfgh arfgh

    arfgh arfgh - 2010-08-03

    Exist some 7z1 or 7zr version that give the posibility to give the password into the command-line instead to have to write it in the console ?

    thx in advance

     
  • Vacon

    Vacon - 2010-08-03

    Hello everyone,

    *ahem*
    Beg your pardon…? command-line <-> console…? Where is the difference from your point of view?

    Best regards!

     
  • arfgh arfgh

    arfgh arfgh - 2010-08-03

    i mean to give to the password without to have to type it. I want to give it programatically.

     
  • Vacon

    Vacon - 2010-08-03

    Hello everyone,

    afaik all versions of 7-Zip's command-line tools accept the "-p" switch. Read about it in the help-file.

    Best regards!

     
  • arfgh arfgh

    arfgh arfgh - 2010-08-03

    i mean to extract, not to compress.

     
  • Vacon

    Vacon - 2010-08-03

    Hello everyone,

    Sir?!

    7z x archive.zip -psecret
    extracts all files from archive.zip using password "secret".
    

    definetly regards extraction!
    If you want help, it is usally need to follow the suggestions you get, instead of reading just the half.

    Best regards!

     
  • arfgh arfgh

    arfgh arfgh - 2010-08-03

    nonono, was again a mistake.
    This time i asked how to extract a password protected 7z file with the reduced command-line console 7zr.exe
    for some reasson dont accept the -pSECRET switch

     
  • arfgh arfgh

    arfgh arfgh - 2010-08-03

    i am using the

    7-Zip (A) 9.15 beta  Copyright (C) 1999-2010 Igor Pavlov  2010-06-20  that is the 7zr.exe

     
  • Vacon

    Vacon - 2010-08-03

    Hello everyone,

    possibly you remember my answers in your other thread (please have a look at it again, there is new information). There is a difference between 7za.exe and 7zr.exe. I'm not in the mood to test everything here to give answers one can get by testing programs on his own. If 7zr.exe doesn't accept the -p switch, well you have to find alternatives. Again: look at your other thread.

    Best regards!

     
  • arfgh arfgh

    arfgh arfgh - 2010-08-03

    well this is again the problem because the reduced 7zr.exe dont accept the -p switch and the 7za.exe size 5xx Kb that is excessive.
    For this reasson i asked for something similar to the UNUHARC.exe program that only extract files and its size is 73,5 KB.

     
  • Vacon

    Vacon - 2010-08-03

    Hello everyone,

    look at the other thread!

    Best regards!

     

Log in to post a comment.