Results 1 to 10 of 10

Thread: unzipping using shell

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Posts
    83

    unzipping using shell

    Anyone have a good example of how to unzip a file using shell command? I have tried going the dll route and have been unable to add to my project.

    I have been working on this in spare time for a couple of weeks and am still unable to unzip. Any help greatly appreciated.

  2. #2
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Do you have the winzip command line addon ?
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Posts
    83

    cmd line addon

    no. i am a beginner and am not too familiar with shelling.

  4. #4
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    ahh.
    well there ya go then

    Go here ;
    http://www.winzip.com/wzcline.cgi

    Grab the addon. Read the command line interface help file for unzipping that comes with it. Then use the Shell statement to run wzunzip.exe

    If you've any more queries on this, its going home time here for me, so I can answer them tomorrow morning, or perhaps someone else can in the meantime
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Posts
    83

    thanks for response

    Went to WinZip site as instructed. Only problem for us is that we are using unpaid evaluation copy of WinZip. I read the license agreement and our use of the addon would be limited to 21 days. Boss is tight and don't think we'll be springing for WinZip. Any other suggestions?

  6. #6
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    WinZip is really cheap.
    But what I would suggest you do is get a registration crack for winzip. They're readily available on the net if you search
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  7. #7
    Gaylord Focker
    Guest

    WZUNZIP command line options

    Thanks again for the reply,

    I have been able to add WZUNZIP and am using it from the command line. I have read the help file, but do not find an option to open the file in the format it was sent.

    Here is what I am trying to do:

    I am getting a zip file sent daily to me containing a number of adobe acrobat files. The files are named using a format of reportname_mmddyy. I save these zip files to a specified directory. I want to set up a form in which I select the reportname and then the date, afterwhich the code will go out to were I archive these files, find the specified report of the specified date and open it in adobe acrobat.

    Sounds like it should be pretty easy. Is all that I need is the correct option? Any help greatly appreciated.

  8. #8
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    There's an option with wzunzip to get a list of files in the zip file.
    So you would get a list, record it, then display it.

    Ya know ?
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  9. #9
    Gaylord Focker
    Guest

    WZUnzip option

    I believe the option is -@listfile. I can't seem to get it to work from the command line. I'll keep trying.

  10. #10

    Thread Starter
    Lively Member
    Join Date
    Aug 2001
    Posts
    83

    Thanks-it works

    got it to work from the command line. Now I just need to learn how to shell.

    Thanks for showing me the way.

Posting Permissions

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



Click Here to Expand Forum to Full Width