Results 1 to 6 of 6

Thread: [RESOLVED] howto extract One file from zip archive

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Feb 2009
    Posts
    156

    Resolved [RESOLVED] howto extract One file from zip archive

    hi
    howto extract One file(my own file) from zip archive.
    (dont use winzip.exe)

    example:
    i want to extract androidmanifest.xml from attached zip file.

    thanks.
    Attached Files Attached Files

  2. #2
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: howto extract One file from zip archive

    you can use a windows shell object to unzip files
    vb Code:
    1. Set sh = CreateObject("shell.application")
    2. Set dest = sh.namespace("C:\test")
    3. dest.copyhere sh.namespace("c:\temp\file.zip").parsename("androidmanifest.xml")
    change paths to suit
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  3. #3
    Addicted Member lecfox's Avatar
    Join Date
    Dec 2011
    Location
    Jamaica
    Posts
    174

    Re: [RESOLVED] howto extract One file from zip archive

    can u be more specific please.. and what if what is being extracted is a folder? that has files
    FOX Designs

  4. #4
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: [RESOLVED] howto extract One file from zip archive

    and what if what is being extracted is a folder? that has files
    unlike other copy methods shell does not care it will just copy all

    note shell object treats zip files like folders

    can u be more specific please..
    specific about what, just change file and folder names to suit
    can you please be more specific about what you want to achieve?
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

  5. #5
    Addicted Member lecfox's Avatar
    Join Date
    Dec 2011
    Location
    Jamaica
    Posts
    174

    Re: [RESOLVED] howto extract One file from zip archive

    i actually achieved it already with DotNetZip Library. You know about the method?
    FOX Designs

  6. #6
    PowerPoster
    Join Date
    Dec 2004
    Posts
    25,618

    Re: [RESOLVED] howto extract One file from zip archive

    You know about the method?
    i do not use .net, so no, i do not know
    i do my best to test code works before i post it, but sometimes am unable to do so for some reason, and usually say so if this is the case.
    Note code snippets posted are just that and do not include error handling that is required in real world applications, but avoid On Error Resume Next

    dim all variables as required as often i have done so elsewhere in my code but only posted the relevant part

    come back and mark your original post as resolved if your problem is fixed
    pete

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