one2fight4
08-25-2009, 06:57 PM
Hello, is there a way to include a .zip folder in the programs resource. When the program is ran i want it to extract to C:/Test and then lets say i put a file test.txt in it, i want to save the .zip file back into the program... pretty much unzip the folder with the files i put in it
vb5prgrmr
08-25-2009, 09:09 PM
Yes it is possible. When you create your installation package you will have to manually add the zip file. Then in your program you will have to add the required code for zipping and unzipping.
Definitly have a look at the 2nd one in this search (follow the link to new version)...
http://search.yahoo.com/search?p=vb6+zip+unzip+source+code&fr=yfp-t-152-s&toggle=1&cop=mss&ei=UTF-8
Good Luck
Bezzie
08-26-2009, 04:08 PM
I think what one2fight4 means is if a Zip file can be added to the program exe as a resource. That can be done and it can be extracted from the exe but I don't think you can add to the zip and write it back into the exe. Might be wrong though.
one2fight4
08-26-2009, 07:19 PM
Bezzie was 100% right. is there any way to save files into the program at runtime? im trying to make a program sorta like a file cabinet that is password protected.
one2fight4
08-27-2009, 12:51 PM
so then how could I do this? I want to password protect my folder with out the folder being able to be accessed just by someone going to the direct location of it...
webbone
08-27-2009, 01:13 PM
You could have your zip file be password protected by design. You don't necessarily have to include it as a resource, just have it be included in your installation package as mentioned previously.
And you won't be able to store the resource back into your executable at run-time.
As an alternative to a password protected zip file, you might consider just having your files be encrypted with whatever method you deem adequate for your requirements.
one2fight4
08-27-2009, 03:14 PM
i was thinking about a .cab file, anyone know a tut on how to manipulate those threw vb?
vb5prgrmr
08-28-2009, 03:03 AM
A cab file will not be secure, no password, and the only code I have ever found is how to read a cab file with vb...
http://www.thescarms.com/VBasic/CabExplorer.aspx
but to make a cab file you will need to know a little c...
http://support.microsoft.com/kb/310618
http://support.microsoft.com/kb/198038
http://support.microsoft.com/kb/176810
Good Luck