Accessing a Text File in Password Protected Zipped Folder
-
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!
-
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!
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.
-
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!
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
-
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