|
-
Dec 18th, 2001, 10:28 PM
#1
Thread Starter
Frenzied Member
Ziping PLEASE HELP
i have searched evvery when planet source code vbaccelerator ect. but i cant find a good ziper.....1 one that i need that when i click a button it will zip a file and then when i click another it will unzip
-
Dec 18th, 2001, 11:53 PM
#2
PowerPoster
Go to visionfactory and get the 2 activex controls called vfzipper and vfunzipper they are free and rock!
-
Dec 19th, 2001, 12:22 AM
#3
Thread Starter
Frenzied Member
visionfactory.com? i didnt c anything there
-
Dec 19th, 2001, 12:35 AM
#4
Fanatic Member
Just a Tip:
Use api can also zip/unzip file
-
Dec 19th, 2001, 12:43 AM
#5
www.vision-factory.com/activex. There is a nice control on PSC that does it. Search for "RichSoft" and you'll find it.
- gaffa
-
Dec 19th, 2001, 12:50 AM
#6
Originally posted by dongaman
Just a Tip:
Use api can also zip/unzip file
What APIs would that be?
AFAIK there is no such thing in the Win32 API functions.
-
Dec 19th, 2001, 12:56 AM
#7
You can use the InfoZip libraries which are free, but they are a nightmare to work on in VB cos they use heaps of callbacks, which are a pain to deal with. That said it is possible - look athte code on vbaccelerator...
- gaffa
-
Dec 19th, 2001, 01:21 AM
#8
Fanatic Member
Can not remembered which apis
-
Dec 19th, 2001, 01:39 PM
#9
Thread Starter
Frenzied Member
can some1 give me some cod on this because i a confusead
-
Dec 19th, 2001, 02:03 PM
#10
Lively Member
Just use the command line zipping utility from winzip and shell out to it.
In case of a water landing, my head may be used as a flotation device.
-
Dec 19th, 2001, 02:12 PM
#11
Thread Starter
Frenzied Member
will you give me some code for that....i am new to this
-
Dec 19th, 2001, 02:23 PM
#12
Thread Starter
Frenzied Member
-
Dec 19th, 2001, 02:25 PM
#13
Lively Member
Go to www.winzip.com and look for their command line utility. Download it and install it, and shell out to it. If you need help on shelling, search this site, I have seen quite a few instances of it, or look in the VB help file.
In case of a water landing, my head may be used as a flotation device.
-
Dec 19th, 2001, 03:25 PM
#14
Thread Starter
Frenzied Member
i dont want the user to have to install a whole program just because i want to aadd somethingg to a zip that was why i wanted a ocx or something
-
Dec 19th, 2001, 04:02 PM
#15
Thread Starter
Frenzied Member
-
Dec 19th, 2001, 04:18 PM
#16
Motoxpro you just have to make a batch who will use pkzip and shell it than delete the batch ok Stop bumping now
-
Dec 19th, 2001, 04:21 PM
#17
Thread Starter
Frenzied Member
how do i make a baatch file?
-
Dec 19th, 2001, 04:23 PM
#18
you save a file with .bat with batch command in it.
-
Dec 19th, 2001, 04:30 PM
#19
Thread Starter
Frenzied Member
so i make a exe in vb and name it . bat?
-
Dec 19th, 2001, 04:32 PM
#20
batch is a language... a DOS one if you want, very basic...but it's not vb. If you do not know Batch i am sure than you can do it in VB.
-
Dec 19th, 2001, 04:38 PM
#21
Thread Starter
Frenzied Member
ok so i make a textfile put the winzip command in it save it as a *.bat file then i shell it in vb?
-
Dec 19th, 2001, 04:45 PM
#22
Hyperactive Member
Hey!
Aren't you using XP! Bad for you. Becouse with xp you get a zip controlle. You can get it if you wan't wait a minut.
-
Dec 19th, 2001, 04:53 PM
#23
Hyperactive Member
Here it is. Sorry but it came with Tweak-XP.
Rename it to "oca"
-
Dec 19th, 2001, 04:54 PM
#24
Hyperactive Member
-
Dec 19th, 2001, 05:03 PM
#25
Thread Starter
Frenzied Member
what are you talking about.....that zip doesnt work anyhow
-
Dec 19th, 2001, 05:17 PM
#26
Hyperactive Member
Do you never read?
Rename it to "saxzip.oca"
-
Dec 19th, 2001, 05:24 PM
#27
get this old dear pkzip, it is for MSDOS but you can use it with shell in VB
-
Dec 19th, 2001, 05:37 PM
#28
Thread Starter
Frenzied Member
and then what am i suposed to do with a .oca?
-
Dec 19th, 2001, 06:26 PM
#29
Thread Starter
Frenzied Member
-
Dec 19th, 2001, 06:40 PM
#30
MotoxPro you are very stressed I think, people do not stay all the time here to check the board, give them time.
-
Dec 19th, 2001, 08:32 PM
#31
Thread Starter
Frenzied Member
ya i was ...i have just been tring to do this for a LONG time
-
Dec 19th, 2001, 08:42 PM
#32
OK here's a project I worked on a while ago.
It uses a DLL named ZipItApi.DLL (included in the ZIP file).
This project is not complete however since we desided to use something else while I was still developing these classes.
It only shows how to ZIP files together but there is an API for unzipping as well.
So try it out and use it in any way you like.
Best regards
-
Dec 19th, 2001, 08:47 PM
#33
Originally posted by DaoK
MotoxPro you are very stressed I think, people do not stay all the time here to check the board, give them time.
I'm sorry if I'm being rather inpolite right now but I don't think you, DaoK, is the right person to tell people not to bump there threads since you actually been one that spamed most of these threads most of the times only to get your post count up.
-
Dec 19th, 2001, 08:54 PM
#34
Joacim Andersson the day you will stop arrasing me like that I will be so happy ok, if you have noticed I do not post as before and I answer more question then ever. So please I do effort can you do the same please.
-
Dec 19th, 2001, 09:00 PM
#35
Originally posted by DaoK
Joacim Andersson the day you will stop arrasing me like that I will be so happy ok, if you have noticed I do not post as before and I answer more question then ever. So please I do effort can you do the same please.
Well, if you look at my post I did apologise for saying it.
And I also put a smiley at the end, but you have to agree that you have spammed a lot of post before.
If you now changed that behaviour I'm glad and I apologise again for mentioning it
Best regards
-
Dec 20th, 2001, 12:03 AM
#36
Thread Starter
Frenzied Member
here is the code i have but it wont zip it up it just moves it
VB Code:
Private Sub Command6_Click()
'unloading a track by the move function from the source
'the fullname directory to the dest thetext1 directory
On Error GoTo err:
Dim fs As New FileSystemObject
fs.MoveFile FullName(Combo1.ListIndex) & "\" & MSFlexGrid1.Text, _
frmgetdir.text1.Text & "\" & Combo1.Text & "\" & MSFlexGrid1.Text
zip.Add "C:\Program Files\Motox Track Pro\Unloaded\QUARRIES" & "\" & MSFlexGrid1.Text
zip.Execute "C:\Program Files\Motox Track Pro\Unloaded\QUARRIES\track1.zip"
prgloop.Max = LOOPMAX
For i = 1 To LOOPMAX
frmMxTrackPro.Caption = "Unloading........" & i
prgloop.Value = i
DoEvents
Next
frmMxTrackPro.Caption = "Motox Track Pro"
prgloop.Value = 0
UpdateLists
err:
If err.Number = 9 Then
MsgBox "You forgot to enter your directorys it looks like," & _
" go to Edit | Directorys and enter your directorys"
End If
UpdateLists
End Sub
-
Dec 20th, 2001, 09:59 AM
#37
Thread Starter
Frenzied Member
-
Dec 20th, 2001, 11:00 AM
#38
Have you tried putting a break point in that sub and stepping through it.
There might be an error raised somewhere that makes it jump to your error checking label, but you're only show a MsgBox if the Err.Number = 9.
Best regards
-
Dec 20th, 2001, 11:07 AM
#39
Hyperactive Member
Im back!!!
Ok go to vb and open "components" and go to the "saxzip.oca" and open it. It will be a zip controll. Havn't tryd it so very much but i fink it's good.
-
Dec 20th, 2001, 11:08 AM
#40
Thread Starter
Frenzied Member
when i try it i get Error acheving but it still moves the file
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|