Results 1 to 5 of 5

Thread: automate unzip file

  1. #1
    Join Date
    Oct 2002
    Location
    queens
    Posts
    139

    automate unzip file

    Hi all smart people,

    I know it's not a real SQL question but since you guys are so smart, I am sure you can help me.

    I need to set up a SQL job where I have to insert a jobsstep which will unzip a file and create a text file which will be used in the next jobstep. Does anyone know what should be the command to unzip a file?

    Thanks in advance!

  2. #2
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    It depends on what ZIp software you used to zip that text file.

    download PKZIP from www.pkware.com.

    That has command line utility.

    i dont think WINZIP has command utility. Somebody Correct me if I am wrong.

    I believe you have to install an add-on
    http://www.winzip.com/wzcline.htm

  3. #3
    Join Date
    Sep 2002
    Location
    Fantasy
    Posts
    4,254
    This will unzip a zip file. If you have a evaluation version, you will get this message

    (press any key to continue (Ctrl-C to quit))

    --Command
    C:\Program Files\WinZip\wzunzip.exe c:\script.zip c:\test

  4. #4
    Join Date
    Sep 2002
    Posts
    5,938
    Yes, winzip has command line add-in.

  5. #5
    Join Date
    Oct 2002
    Location
    queens
    Posts
    139
    Thanks Mak, that works.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •