Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Accessing a Text File in Password Protected Zipped Folder

Accessing a Text File in Password Protected Zipped Folder

Scheduled Pinned Locked Moved Visual Basic
csharpdatabasehelptutorial
4 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    All_Beagle
    wrote on last edited by
    #1

    Hello Everyone, I have a file access question that hopefully one of you can help me out with. I'm doing a WEB project where I have to access a text file that is located inside a password protected zip folder. First what I want to know is if someone can point me in the right direction as far as reading the file programmatically with VB.NET. I know how to access the file if it wasn't in a zipped folder and password protected (yes I do have the password, nothing malicious going on). Second, if I'm unable to go to the ftp address and and see the file that way, does someone know how I can get started on logging in to the directory, unzipping the folder, and downloading it to my web directory through the VB.NET code behind. This is a web app where I need to access a tab-delimited text file and display the data and possibly insert it into a DB. Thanks for any help!

    C J 2 Replies Last reply
    0
    • A All_Beagle

      Hello Everyone, I have a file access question that hopefully one of you can help me out with. I'm doing a WEB project where I have to access a text file that is located inside a password protected zip folder. First what I want to know is if someone can point me in the right direction as far as reading the file programmatically with VB.NET. I know how to access the file if it wasn't in a zipped folder and password protected (yes I do have the password, nothing malicious going on). Second, if I'm unable to go to the ftp address and and see the file that way, does someone know how I can get started on logging in to the directory, unzipping the folder, and downloading it to my web directory through the VB.NET code behind. This is a web app where I need to access a tab-delimited text file and display the data and possibly insert it into a DB. Thanks for any help!

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      There's zip libraries you can buy, perhaps some of those support passworded zips. Otherwise, I'd look at if winzip takes a command line with a password.

      Christian Graus Driven to the arms of OSX by Vista.

      1 Reply Last reply
      0
      • A All_Beagle

        Hello Everyone, I have a file access question that hopefully one of you can help me out with. I'm doing a WEB project where I have to access a text file that is located inside a password protected zip folder. First what I want to know is if someone can point me in the right direction as far as reading the file programmatically with VB.NET. I know how to access the file if it wasn't in a zipped folder and password protected (yes I do have the password, nothing malicious going on). Second, if I'm unable to go to the ftp address and and see the file that way, does someone know how I can get started on logging in to the directory, unzipping the folder, and downloading it to my web directory through the VB.NET code behind. This is a web app where I need to access a tab-delimited text file and display the data and possibly insert it into a DB. Thanks for any help!

        J Offline
        J Offline
        Jon_Boy
        wrote on last edited by
        #3

        For the extraction of a password zip file, check out DotNetZip. Free, open source, the examples are pretty decent, and Cheeso maintains it well. Pretty good utility for zip files under 2/4 gigs in size (max size dependent on CPU type).

        All_Beagle wrote:

        Second, if I'm unable to go to the ftp address and and see the file that way, does someone know how I can get started on logging in to the directory, unzipping the folder, and downloading it to my web directory through the VB.NET code behind. This is a web app where I need to access a tab-delimited text file and display the data and possibly insert it into a DB.

        If you do not have direct access to the directory and you need to use FTP, I think you'll have to download the file and then extract it since there aren't native commands for FTP to unzip files. Do a code project or google search for endless examples on how to FTP.....not that difficult to implement. Cheers!

        Any suggestions, ideas, or 'constructive criticism' are always welcome. "There's no such thing as a stupid question, only stupid people." - Mr. Garrison

        C 1 Reply Last reply
        0
        • J Jon_Boy

          For the extraction of a password zip file, check out DotNetZip. Free, open source, the examples are pretty decent, and Cheeso maintains it well. Pretty good utility for zip files under 2/4 gigs in size (max size dependent on CPU type).

          All_Beagle wrote:

          Second, if I'm unable to go to the ftp address and and see the file that way, does someone know how I can get started on logging in to the directory, unzipping the folder, and downloading it to my web directory through the VB.NET code behind. This is a web app where I need to access a tab-delimited text file and display the data and possibly insert it into a DB.

          If you do not have direct access to the directory and you need to use FTP, I think you'll have to download the file and then extract it since there aren't native commands for FTP to unzip files. Do a code project or google search for endless examples on how to FTP.....not that difficult to implement. Cheers!

          Any suggestions, ideas, or 'constructive criticism' are always welcome. "There's no such thing as a stupid question, only stupid people." - Mr. Garrison

          C Offline
          C Offline
          Cheeso
          wrote on last edited by
          #4

          As of February 2009, DotNetZip works with ZIP files above 4g in size. Get v1.7 or later.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups