Is there a way to compress folders individually using 7zip on a large collection of folders?












0















How can 260 folders be zipped individually using 7zip with a single command?



The person who originally asked this question voluntarily deleted the post. Since it was an interesting task, I resurrected the question and developed a solution, which is posted below as an answer.










share|improve this question





























    0















    How can 260 folders be zipped individually using 7zip with a single command?



    The person who originally asked this question voluntarily deleted the post. Since it was an interesting task, I resurrected the question and developed a solution, which is posted below as an answer.










    share|improve this question



























      0












      0








      0








      How can 260 folders be zipped individually using 7zip with a single command?



      The person who originally asked this question voluntarily deleted the post. Since it was an interesting task, I resurrected the question and developed a solution, which is posted below as an answer.










      share|improve this question
















      How can 260 folders be zipped individually using 7zip with a single command?



      The person who originally asked this question voluntarily deleted the post. Since it was an interesting task, I resurrected the question and developed a solution, which is posted below as an answer.







      batch compression 7-zip






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 26 '14 at 23:58









      fixer1234

      18.7k144982




      18.7k144982










      asked Dec 26 '14 at 5:48









      xR34P3RxxR34P3Rx

      318412




      318412






















          3 Answers
          3






          active

          oldest

          votes


















          1














          This works for files not sub-folder in a parent folder
          http://dropcanvas.com/w7u6a/3



          http://dropcanvas.com/w7u6a/3



          @echo off
          cd /d %~dp0
          rem 7z.exe path
          set sevenzip=
          if "%sevenzip%"=="" if exist "%ProgramFiles(x86)%7-zip7z.exe" set sevenzip=%ProgramFiles(x86)%7-zip7z.exe
          if "%sevenzip%"=="" if exist "%ProgramFiles%7-zip7z.exe" set sevenzip=%ProgramFiles%7-zip7z.exe
          if "%sevenzip%"=="" echo 7-zip not found&pause&exit
          set extension=.mp4
          for %%a in (*%extension%) do "%sevenzip%" a "%%~na.7z" "%%a"
          pause
          [/CODE]





          share|improve this answer































            1














            Write it like this and there won't be any problems.



            7z a  -t7z "c:usersuserdesktopfolder%%G.7z" c:usersuserdesktopfolder%%G -r





            share|improve this answer































              0














              Here is a script to accomplish that (omit the comments "//", which are shown for explanation):



              @echo off
              for /D %%G IN (*) DO (
              //This is my path to 7-Zip, it could be different for you
              cd c:program files7-zip
              //This is the dir of the parent folder in which you want the subfolders to be zipped individually.
              7z a -t7z c:usersuserdesktopfolder%%G.7z c:usersuserdesktopfolder%%G -r )
              pause


              -t7z is the .7z archive format being used.



              To use the script:



              The way the script is written is assuming that you have a parent folder with sub directory that you want to zip individually (each sub directory in its own zip archive).



              Visual Representation:



              ----Parent Directory
              --------Sub Directory (to be zipped)
              --------Sub Directory (to be zipped)
              --------Sub Directory (to be zipped)
              --------Sub Directory (to be zipped)
              --------Sub Directory (to be zipped)


              Lers say that the sub directories you want to zip are located in C:UsersFooDocuments. So it would look like:



              ----C:UsersFooDocuments
              --------Foo1
              --------Foo2
              --------Foo3
              --------Foo4
              --------Foo5


              So in the script i provided, you would edit the line:



              7z a  -t7z c:usersuserdesktopfolder%%G.7z c:usersuserdesktopfolder%%G -r )


              to say:



              7z a  -t7z c:UsersFooDocuments%%G.7z c:UsersFooDocuments%%G -r )


              So now we have to set our 7z.exe location so the script can run properly.



              NOTE: You do not have to do this if you succeed in setting the Environmental Variable for 7z.exe. For those who succeed, omit the line cd c:program files7-zip. To test if it worked or not, simply open cmd.exe and type in 7z, if you get a list of options and parameters, then it worked and if not, then continue with the cd command.



              Find where you installed 7-Zip and copy the directory and add it after the cd. In the example, it will be installed in C:Program Files7-Zip. So the finished script will look like this:



              @echo off
              for /D %%G IN (*) DO (
              cd C:Program Files7-Zip
              7z a -t7z c:UsersFooDocuments%%G.7z c:UsersFooDocuments%%G -r )
              pause


              now save the script as a .bat file extension, if using notepad you must change Save as Type to All Files (".").



              If written correctly, end result should look like this:
              Result



              NOTE: If you have folders that have spaces, it wont output the entire name, but where the first word before the space. Ex: Foo 1 will be archived as Foo.7z (no bueno). Same thing with more than one folder with the first word as Foo and Foo 1, they both run into the last problem i explained and when Foo is first archived, the archive for Foo 1 will try to overwrite Foo's because they have the same name. If you can find a work around this, Kudos to you!



              You may also want to try Tyler's version of my script, of course, his is more "universally compatible" and involves having 7z.exe as an E.V. (Environmental Variable).






              share|improve this answer


























              • Can you add a sentence to the answer on how to use the script?

                – fixer1234
                Dec 26 '14 at 23:59











              • Updated it for ya :)

                – xR34P3Rx
                Dec 27 '14 at 5:55











              • Nice job. I already upvoted your question and answer.

                – fixer1234
                Dec 27 '14 at 6:22











              • You need quotes around C:Program Files7-Zip or the script will cd to c:program

                – user387876
                Dec 28 '14 at 19:28











              • That never happens to me. Did you try it?

                – xR34P3Rx
                Dec 28 '14 at 19:30











              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "3"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f856962%2fis-there-a-way-to-compress-folders-individually-using-7zip-on-a-large-collection%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              1














              This works for files not sub-folder in a parent folder
              http://dropcanvas.com/w7u6a/3



              http://dropcanvas.com/w7u6a/3



              @echo off
              cd /d %~dp0
              rem 7z.exe path
              set sevenzip=
              if "%sevenzip%"=="" if exist "%ProgramFiles(x86)%7-zip7z.exe" set sevenzip=%ProgramFiles(x86)%7-zip7z.exe
              if "%sevenzip%"=="" if exist "%ProgramFiles%7-zip7z.exe" set sevenzip=%ProgramFiles%7-zip7z.exe
              if "%sevenzip%"=="" echo 7-zip not found&pause&exit
              set extension=.mp4
              for %%a in (*%extension%) do "%sevenzip%" a "%%~na.7z" "%%a"
              pause
              [/CODE]





              share|improve this answer




























                1














                This works for files not sub-folder in a parent folder
                http://dropcanvas.com/w7u6a/3



                http://dropcanvas.com/w7u6a/3



                @echo off
                cd /d %~dp0
                rem 7z.exe path
                set sevenzip=
                if "%sevenzip%"=="" if exist "%ProgramFiles(x86)%7-zip7z.exe" set sevenzip=%ProgramFiles(x86)%7-zip7z.exe
                if "%sevenzip%"=="" if exist "%ProgramFiles%7-zip7z.exe" set sevenzip=%ProgramFiles%7-zip7z.exe
                if "%sevenzip%"=="" echo 7-zip not found&pause&exit
                set extension=.mp4
                for %%a in (*%extension%) do "%sevenzip%" a "%%~na.7z" "%%a"
                pause
                [/CODE]





                share|improve this answer


























                  1












                  1








                  1







                  This works for files not sub-folder in a parent folder
                  http://dropcanvas.com/w7u6a/3



                  http://dropcanvas.com/w7u6a/3



                  @echo off
                  cd /d %~dp0
                  rem 7z.exe path
                  set sevenzip=
                  if "%sevenzip%"=="" if exist "%ProgramFiles(x86)%7-zip7z.exe" set sevenzip=%ProgramFiles(x86)%7-zip7z.exe
                  if "%sevenzip%"=="" if exist "%ProgramFiles%7-zip7z.exe" set sevenzip=%ProgramFiles%7-zip7z.exe
                  if "%sevenzip%"=="" echo 7-zip not found&pause&exit
                  set extension=.mp4
                  for %%a in (*%extension%) do "%sevenzip%" a "%%~na.7z" "%%a"
                  pause
                  [/CODE]





                  share|improve this answer













                  This works for files not sub-folder in a parent folder
                  http://dropcanvas.com/w7u6a/3



                  http://dropcanvas.com/w7u6a/3



                  @echo off
                  cd /d %~dp0
                  rem 7z.exe path
                  set sevenzip=
                  if "%sevenzip%"=="" if exist "%ProgramFiles(x86)%7-zip7z.exe" set sevenzip=%ProgramFiles(x86)%7-zip7z.exe
                  if "%sevenzip%"=="" if exist "%ProgramFiles%7-zip7z.exe" set sevenzip=%ProgramFiles%7-zip7z.exe
                  if "%sevenzip%"=="" echo 7-zip not found&pause&exit
                  set extension=.mp4
                  for %%a in (*%extension%) do "%sevenzip%" a "%%~na.7z" "%%a"
                  pause
                  [/CODE]






                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Dec 30 '17 at 21:32









                  HamedHamed

                  213




                  213

























                      1














                      Write it like this and there won't be any problems.



                      7z a  -t7z "c:usersuserdesktopfolder%%G.7z" c:usersuserdesktopfolder%%G -r





                      share|improve this answer




























                        1














                        Write it like this and there won't be any problems.



                        7z a  -t7z "c:usersuserdesktopfolder%%G.7z" c:usersuserdesktopfolder%%G -r





                        share|improve this answer


























                          1












                          1








                          1







                          Write it like this and there won't be any problems.



                          7z a  -t7z "c:usersuserdesktopfolder%%G.7z" c:usersuserdesktopfolder%%G -r





                          share|improve this answer













                          Write it like this and there won't be any problems.



                          7z a  -t7z "c:usersuserdesktopfolder%%G.7z" c:usersuserdesktopfolder%%G -r






                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Jan 8 at 17:24









                          955955

                          111




                          111























                              0














                              Here is a script to accomplish that (omit the comments "//", which are shown for explanation):



                              @echo off
                              for /D %%G IN (*) DO (
                              //This is my path to 7-Zip, it could be different for you
                              cd c:program files7-zip
                              //This is the dir of the parent folder in which you want the subfolders to be zipped individually.
                              7z a -t7z c:usersuserdesktopfolder%%G.7z c:usersuserdesktopfolder%%G -r )
                              pause


                              -t7z is the .7z archive format being used.



                              To use the script:



                              The way the script is written is assuming that you have a parent folder with sub directory that you want to zip individually (each sub directory in its own zip archive).



                              Visual Representation:



                              ----Parent Directory
                              --------Sub Directory (to be zipped)
                              --------Sub Directory (to be zipped)
                              --------Sub Directory (to be zipped)
                              --------Sub Directory (to be zipped)
                              --------Sub Directory (to be zipped)


                              Lers say that the sub directories you want to zip are located in C:UsersFooDocuments. So it would look like:



                              ----C:UsersFooDocuments
                              --------Foo1
                              --------Foo2
                              --------Foo3
                              --------Foo4
                              --------Foo5


                              So in the script i provided, you would edit the line:



                              7z a  -t7z c:usersuserdesktopfolder%%G.7z c:usersuserdesktopfolder%%G -r )


                              to say:



                              7z a  -t7z c:UsersFooDocuments%%G.7z c:UsersFooDocuments%%G -r )


                              So now we have to set our 7z.exe location so the script can run properly.



                              NOTE: You do not have to do this if you succeed in setting the Environmental Variable for 7z.exe. For those who succeed, omit the line cd c:program files7-zip. To test if it worked or not, simply open cmd.exe and type in 7z, if you get a list of options and parameters, then it worked and if not, then continue with the cd command.



                              Find where you installed 7-Zip and copy the directory and add it after the cd. In the example, it will be installed in C:Program Files7-Zip. So the finished script will look like this:



                              @echo off
                              for /D %%G IN (*) DO (
                              cd C:Program Files7-Zip
                              7z a -t7z c:UsersFooDocuments%%G.7z c:UsersFooDocuments%%G -r )
                              pause


                              now save the script as a .bat file extension, if using notepad you must change Save as Type to All Files (".").



                              If written correctly, end result should look like this:
                              Result



                              NOTE: If you have folders that have spaces, it wont output the entire name, but where the first word before the space. Ex: Foo 1 will be archived as Foo.7z (no bueno). Same thing with more than one folder with the first word as Foo and Foo 1, they both run into the last problem i explained and when Foo is first archived, the archive for Foo 1 will try to overwrite Foo's because they have the same name. If you can find a work around this, Kudos to you!



                              You may also want to try Tyler's version of my script, of course, his is more "universally compatible" and involves having 7z.exe as an E.V. (Environmental Variable).






                              share|improve this answer


























                              • Can you add a sentence to the answer on how to use the script?

                                – fixer1234
                                Dec 26 '14 at 23:59











                              • Updated it for ya :)

                                – xR34P3Rx
                                Dec 27 '14 at 5:55











                              • Nice job. I already upvoted your question and answer.

                                – fixer1234
                                Dec 27 '14 at 6:22











                              • You need quotes around C:Program Files7-Zip or the script will cd to c:program

                                – user387876
                                Dec 28 '14 at 19:28











                              • That never happens to me. Did you try it?

                                – xR34P3Rx
                                Dec 28 '14 at 19:30
















                              0














                              Here is a script to accomplish that (omit the comments "//", which are shown for explanation):



                              @echo off
                              for /D %%G IN (*) DO (
                              //This is my path to 7-Zip, it could be different for you
                              cd c:program files7-zip
                              //This is the dir of the parent folder in which you want the subfolders to be zipped individually.
                              7z a -t7z c:usersuserdesktopfolder%%G.7z c:usersuserdesktopfolder%%G -r )
                              pause


                              -t7z is the .7z archive format being used.



                              To use the script:



                              The way the script is written is assuming that you have a parent folder with sub directory that you want to zip individually (each sub directory in its own zip archive).



                              Visual Representation:



                              ----Parent Directory
                              --------Sub Directory (to be zipped)
                              --------Sub Directory (to be zipped)
                              --------Sub Directory (to be zipped)
                              --------Sub Directory (to be zipped)
                              --------Sub Directory (to be zipped)


                              Lers say that the sub directories you want to zip are located in C:UsersFooDocuments. So it would look like:



                              ----C:UsersFooDocuments
                              --------Foo1
                              --------Foo2
                              --------Foo3
                              --------Foo4
                              --------Foo5


                              So in the script i provided, you would edit the line:



                              7z a  -t7z c:usersuserdesktopfolder%%G.7z c:usersuserdesktopfolder%%G -r )


                              to say:



                              7z a  -t7z c:UsersFooDocuments%%G.7z c:UsersFooDocuments%%G -r )


                              So now we have to set our 7z.exe location so the script can run properly.



                              NOTE: You do not have to do this if you succeed in setting the Environmental Variable for 7z.exe. For those who succeed, omit the line cd c:program files7-zip. To test if it worked or not, simply open cmd.exe and type in 7z, if you get a list of options and parameters, then it worked and if not, then continue with the cd command.



                              Find where you installed 7-Zip and copy the directory and add it after the cd. In the example, it will be installed in C:Program Files7-Zip. So the finished script will look like this:



                              @echo off
                              for /D %%G IN (*) DO (
                              cd C:Program Files7-Zip
                              7z a -t7z c:UsersFooDocuments%%G.7z c:UsersFooDocuments%%G -r )
                              pause


                              now save the script as a .bat file extension, if using notepad you must change Save as Type to All Files (".").



                              If written correctly, end result should look like this:
                              Result



                              NOTE: If you have folders that have spaces, it wont output the entire name, but where the first word before the space. Ex: Foo 1 will be archived as Foo.7z (no bueno). Same thing with more than one folder with the first word as Foo and Foo 1, they both run into the last problem i explained and when Foo is first archived, the archive for Foo 1 will try to overwrite Foo's because they have the same name. If you can find a work around this, Kudos to you!



                              You may also want to try Tyler's version of my script, of course, his is more "universally compatible" and involves having 7z.exe as an E.V. (Environmental Variable).






                              share|improve this answer


























                              • Can you add a sentence to the answer on how to use the script?

                                – fixer1234
                                Dec 26 '14 at 23:59











                              • Updated it for ya :)

                                – xR34P3Rx
                                Dec 27 '14 at 5:55











                              • Nice job. I already upvoted your question and answer.

                                – fixer1234
                                Dec 27 '14 at 6:22











                              • You need quotes around C:Program Files7-Zip or the script will cd to c:program

                                – user387876
                                Dec 28 '14 at 19:28











                              • That never happens to me. Did you try it?

                                – xR34P3Rx
                                Dec 28 '14 at 19:30














                              0












                              0








                              0







                              Here is a script to accomplish that (omit the comments "//", which are shown for explanation):



                              @echo off
                              for /D %%G IN (*) DO (
                              //This is my path to 7-Zip, it could be different for you
                              cd c:program files7-zip
                              //This is the dir of the parent folder in which you want the subfolders to be zipped individually.
                              7z a -t7z c:usersuserdesktopfolder%%G.7z c:usersuserdesktopfolder%%G -r )
                              pause


                              -t7z is the .7z archive format being used.



                              To use the script:



                              The way the script is written is assuming that you have a parent folder with sub directory that you want to zip individually (each sub directory in its own zip archive).



                              Visual Representation:



                              ----Parent Directory
                              --------Sub Directory (to be zipped)
                              --------Sub Directory (to be zipped)
                              --------Sub Directory (to be zipped)
                              --------Sub Directory (to be zipped)
                              --------Sub Directory (to be zipped)


                              Lers say that the sub directories you want to zip are located in C:UsersFooDocuments. So it would look like:



                              ----C:UsersFooDocuments
                              --------Foo1
                              --------Foo2
                              --------Foo3
                              --------Foo4
                              --------Foo5


                              So in the script i provided, you would edit the line:



                              7z a  -t7z c:usersuserdesktopfolder%%G.7z c:usersuserdesktopfolder%%G -r )


                              to say:



                              7z a  -t7z c:UsersFooDocuments%%G.7z c:UsersFooDocuments%%G -r )


                              So now we have to set our 7z.exe location so the script can run properly.



                              NOTE: You do not have to do this if you succeed in setting the Environmental Variable for 7z.exe. For those who succeed, omit the line cd c:program files7-zip. To test if it worked or not, simply open cmd.exe and type in 7z, if you get a list of options and parameters, then it worked and if not, then continue with the cd command.



                              Find where you installed 7-Zip and copy the directory and add it after the cd. In the example, it will be installed in C:Program Files7-Zip. So the finished script will look like this:



                              @echo off
                              for /D %%G IN (*) DO (
                              cd C:Program Files7-Zip
                              7z a -t7z c:UsersFooDocuments%%G.7z c:UsersFooDocuments%%G -r )
                              pause


                              now save the script as a .bat file extension, if using notepad you must change Save as Type to All Files (".").



                              If written correctly, end result should look like this:
                              Result



                              NOTE: If you have folders that have spaces, it wont output the entire name, but where the first word before the space. Ex: Foo 1 will be archived as Foo.7z (no bueno). Same thing with more than one folder with the first word as Foo and Foo 1, they both run into the last problem i explained and when Foo is first archived, the archive for Foo 1 will try to overwrite Foo's because they have the same name. If you can find a work around this, Kudos to you!



                              You may also want to try Tyler's version of my script, of course, his is more "universally compatible" and involves having 7z.exe as an E.V. (Environmental Variable).






                              share|improve this answer















                              Here is a script to accomplish that (omit the comments "//", which are shown for explanation):



                              @echo off
                              for /D %%G IN (*) DO (
                              //This is my path to 7-Zip, it could be different for you
                              cd c:program files7-zip
                              //This is the dir of the parent folder in which you want the subfolders to be zipped individually.
                              7z a -t7z c:usersuserdesktopfolder%%G.7z c:usersuserdesktopfolder%%G -r )
                              pause


                              -t7z is the .7z archive format being used.



                              To use the script:



                              The way the script is written is assuming that you have a parent folder with sub directory that you want to zip individually (each sub directory in its own zip archive).



                              Visual Representation:



                              ----Parent Directory
                              --------Sub Directory (to be zipped)
                              --------Sub Directory (to be zipped)
                              --------Sub Directory (to be zipped)
                              --------Sub Directory (to be zipped)
                              --------Sub Directory (to be zipped)


                              Lers say that the sub directories you want to zip are located in C:UsersFooDocuments. So it would look like:



                              ----C:UsersFooDocuments
                              --------Foo1
                              --------Foo2
                              --------Foo3
                              --------Foo4
                              --------Foo5


                              So in the script i provided, you would edit the line:



                              7z a  -t7z c:usersuserdesktopfolder%%G.7z c:usersuserdesktopfolder%%G -r )


                              to say:



                              7z a  -t7z c:UsersFooDocuments%%G.7z c:UsersFooDocuments%%G -r )


                              So now we have to set our 7z.exe location so the script can run properly.



                              NOTE: You do not have to do this if you succeed in setting the Environmental Variable for 7z.exe. For those who succeed, omit the line cd c:program files7-zip. To test if it worked or not, simply open cmd.exe and type in 7z, if you get a list of options and parameters, then it worked and if not, then continue with the cd command.



                              Find where you installed 7-Zip and copy the directory and add it after the cd. In the example, it will be installed in C:Program Files7-Zip. So the finished script will look like this:



                              @echo off
                              for /D %%G IN (*) DO (
                              cd C:Program Files7-Zip
                              7z a -t7z c:UsersFooDocuments%%G.7z c:UsersFooDocuments%%G -r )
                              pause


                              now save the script as a .bat file extension, if using notepad you must change Save as Type to All Files (".").



                              If written correctly, end result should look like this:
                              Result



                              NOTE: If you have folders that have spaces, it wont output the entire name, but where the first word before the space. Ex: Foo 1 will be archived as Foo.7z (no bueno). Same thing with more than one folder with the first word as Foo and Foo 1, they both run into the last problem i explained and when Foo is first archived, the archive for Foo 1 will try to overwrite Foo's because they have the same name. If you can find a work around this, Kudos to you!



                              You may also want to try Tyler's version of my script, of course, his is more "universally compatible" and involves having 7z.exe as an E.V. (Environmental Variable).







                              share|improve this answer














                              share|improve this answer



                              share|improve this answer








                              edited Dec 27 '14 at 5:54

























                              answered Dec 26 '14 at 5:51









                              xR34P3RxxR34P3Rx

                              318412




                              318412













                              • Can you add a sentence to the answer on how to use the script?

                                – fixer1234
                                Dec 26 '14 at 23:59











                              • Updated it for ya :)

                                – xR34P3Rx
                                Dec 27 '14 at 5:55











                              • Nice job. I already upvoted your question and answer.

                                – fixer1234
                                Dec 27 '14 at 6:22











                              • You need quotes around C:Program Files7-Zip or the script will cd to c:program

                                – user387876
                                Dec 28 '14 at 19:28











                              • That never happens to me. Did you try it?

                                – xR34P3Rx
                                Dec 28 '14 at 19:30



















                              • Can you add a sentence to the answer on how to use the script?

                                – fixer1234
                                Dec 26 '14 at 23:59











                              • Updated it for ya :)

                                – xR34P3Rx
                                Dec 27 '14 at 5:55











                              • Nice job. I already upvoted your question and answer.

                                – fixer1234
                                Dec 27 '14 at 6:22











                              • You need quotes around C:Program Files7-Zip or the script will cd to c:program

                                – user387876
                                Dec 28 '14 at 19:28











                              • That never happens to me. Did you try it?

                                – xR34P3Rx
                                Dec 28 '14 at 19:30

















                              Can you add a sentence to the answer on how to use the script?

                              – fixer1234
                              Dec 26 '14 at 23:59





                              Can you add a sentence to the answer on how to use the script?

                              – fixer1234
                              Dec 26 '14 at 23:59













                              Updated it for ya :)

                              – xR34P3Rx
                              Dec 27 '14 at 5:55





                              Updated it for ya :)

                              – xR34P3Rx
                              Dec 27 '14 at 5:55













                              Nice job. I already upvoted your question and answer.

                              – fixer1234
                              Dec 27 '14 at 6:22





                              Nice job. I already upvoted your question and answer.

                              – fixer1234
                              Dec 27 '14 at 6:22













                              You need quotes around C:Program Files7-Zip or the script will cd to c:program

                              – user387876
                              Dec 28 '14 at 19:28





                              You need quotes around C:Program Files7-Zip or the script will cd to c:program

                              – user387876
                              Dec 28 '14 at 19:28













                              That never happens to me. Did you try it?

                              – xR34P3Rx
                              Dec 28 '14 at 19:30





                              That never happens to me. Did you try it?

                              – xR34P3Rx
                              Dec 28 '14 at 19:30


















                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Super User!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f856962%2fis-there-a-way-to-compress-folders-individually-using-7zip-on-a-large-collection%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Plaza Victoria

                              In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

                              How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...