How do I create a batch script to zip my files

Home Forums Tweak help How do I create a batch script to zip my files

Tagged: ,

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #892 Reply
    Anonymous
    Inactive

    So if I create a .bat file and I stick the below in it should zip my files to the destination folder called test?

    @ECHO OFF

    C:Documents and SettingsDesktoptestZIPFILE.ZIP

    :EXIT

    Please excuse my noob questions.

    Thank you in advance.

    #1601 Reply
    Snakefoot
    Member

    The easiest way to create a zip file is through Windows Explorer:

    1) Select the files / directories you want to compress

    2) Right-click the selection and choose Send To -> Compressed (zipped) Folder

    If you want to create a zip file using the command line, then you need to install a compression utility like 7zip. By providing the proper command line arguments, then it is possible to compress the wanted files into a zip-file. More Info 7-Zip Command-Line Examples

    #1602 Reply
    Anonymous
    Inactive

    Hi snakefoot,

    thank you for your reply but I’m well aware of how to create a compressed file within win. explorer, what I’m after is an automated way to zip up files from one directory to another.

    So let say from folder A I want to run an automated task which can be set from Start-> all programs-> accesories-> system tools->scheduler to zip up all files to folder B

    I have already installed 7zip command line but again I need to set it and forget it.

    this is where I have a weak point:-)

    Thank you.

    Mark

    #1603 Reply
    Snakefoot
    Member

    Well if wanting to backup all the files in folder A and store the zip file in folder B:

    C:Program Files7-Zip7z.exe a -tzip C:BZipFile.zip C:A*.*

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: How do I create a batch script to zip my files
Your information:





<a href="" title="" rel="" target=""> <blockquote cite=""> <code> <pre class=""> <em> <strong> <del datetime="" cite=""> <ins datetime="" cite=""> <ul> <ol start=""> <li> <img src="" border="" alt="" height="" width="">

Comments are closed.