Menu

output directory for compression 7zip

Help
noLogo
2008-02-12
2012-12-07
  • noLogo

    noLogo - 2008-02-12

    i've done a search and couldn't find anything.
    i'm trying to create an output directory for the zipped file im creating using command line.
    my code at the moment:

    7za a archive%DATE:/=_%.zip c:\temp
    this produces the correct zip folder with the contents of C:\temp however it outputs the file to the directory from where 7zip is being ran.  for example: C:\my docs\7ziptest.
    I want to set the output directory to C:\Reports.
    Can you please assist.

    Regards,
    zell

     
    • noLogo

      noLogo - 2008-02-25

      /bump
      anyone know how to set the output directory of the created zip file?
      does -o: actually work on creating a zip?because i've to discover the correct code for selecting an output location.

       
    • Alex Forencich

      Alex Forencich - 2008-03-14

      give it an absolute path for the output name, and put it in quotes if there are any spaces. 

      7z a -tzip c:\Reports\archive.zip c:\temp

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.