Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Creating a ZIP file from MS-Dos  (Read 7734 times)

0 Members and 1 Guest are viewing this topic.

nvisco

    Topic Starter


    Newbie

    Creating a ZIP file from MS-Dos
    « on: July 28, 2009, 07:19:06 AM »
    good morning everyone I'm very new at this any help would be appreciated.

    I'm trying to create a zip file thru ms-dos, I want to read a folder while executing a txt file

    Command that I"m using

    "C:\Program Files\7-Zip\7z.exe" a -tzip \\filename.zip @\\test.txt

    but I keep getting an error

    Error:
    Incorrect wildcard in listfile

    ty in advance

    nvisco

      Topic Starter


      Newbie

      Re: Creating a ZIP file from MS-Dos
      « Reply #1 on: July 28, 2009, 07:28:38 AM »
       :)

      Got it to work guys thank you...................

      insect



        Greenhorn

        Re: Creating a ZIP file from MS-Dos
        « Reply #2 on: July 28, 2009, 08:08:34 AM »
        why  dont you  use winrar?


        Please See the Forum Rules...

        We do not do that here.
        « Last Edit: July 28, 2009, 08:11:02 AM by patio »

        insect



          Greenhorn

          Re: Creating a ZIP file from MS-Dos
          « Reply #3 on: July 28, 2009, 08:12:56 AM »
          @echo OFF
          REM Extract the content of all zip & rar.gz files in the current directory
          for %%f in (*.zip *.rar) do "C:\Program Files\WinRAR\Winrar.exe" x "%%f"

          BC_Programmer


            Mastermind
          • Typing is no substitute for thinking.
          • Thanked: 1140
            • Yes
            • Yes
            • BC-Programming.com
          • Certifications: List
          • Computer: Specs
          • Experience: Beginner
          • OS: Windows 11
          Re: Creating a ZIP file from MS-Dos
          « Reply #4 on: July 28, 2009, 08:15:57 AM »
          what does he gain by using WinRAR over 7Zip?
          I was trying to dereference Null Pointers before it was cool.

          patio

          • Moderator


          • Genius
          • Maud' Dib
          • Thanked: 1769
            • Yes
          • Experience: Beginner
          • OS: Windows 7
          Re: Creating a ZIP file from MS-Dos
          « Reply #5 on: July 28, 2009, 08:16:05 AM »
          Doesn't the REM negate the command ? ? ?
          " Anyone who goes to a psychiatrist should have his head examined. "

          BC_Programmer


            Mastermind
          • Typing is no substitute for thinking.
          • Thanked: 1140
            • Yes
            • Yes
            • BC-Programming.com
          • Certifications: List
          • Computer: Specs
          • Experience: Beginner
          • OS: Windows 11
          Re: Creating a ZIP file from MS-Dos
          « Reply #6 on: July 28, 2009, 08:19:10 AM »
          naw, it's REMing the comment, actually.

          I was trying to dereference Null Pointers before it was cool.

          patio

          • Moderator


          • Genius
          • Maud' Dib
          • Thanked: 1769
            • Yes
          • Experience: Beginner
          • OS: Windows 7
          Re: Creating a ZIP file from MS-Dos
          « Reply #7 on: July 28, 2009, 08:24:03 AM »
          Gotcha....Rusty.
          " Anyone who goes to a psychiatrist should have his head examined. "