Page 1 of 2 12 LastLast
Results 1 to 40 of 46

Thread: Ziping PLEASE HELP

  1. #1

    Thread Starter
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211

    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

  2. #2
    PowerPoster Beacon's Avatar
    Join Date
    Jan 2001
    Location
    Pub Floor
    Posts
    3,188
    Go to visionfactory and get the 2 activex controls called vfzipper and vfunzipper they are free and rock!


  3. #3

    Thread Starter
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    visionfactory.com? i didnt c anything there

  4. #4
    Fanatic Member dongaman's Avatar
    Join Date
    Aug 2001
    Location
    xi'an
    Posts
    616
    Just a Tip:
    Use api can also zip/unzip file
    I am just aman.

  5. #5
    gaffa
    Guest
    www.vision-factory.com/activex. There is a nice control on PSC that does it. Search for "RichSoft" and you'll find it.

    - gaffa

  6. #6
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    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.

  7. #7
    gaffa
    Guest
    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

  8. #8
    Fanatic Member dongaman's Avatar
    Join Date
    Aug 2001
    Location
    xi'an
    Posts
    616
    Can not remembered which apis
    I am just aman.

  9. #9

    Thread Starter
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    can some1 give me some cod on this because i a confusead

  10. #10
    Lively Member
    Join Date
    Nov 2000
    Location
    Sugar Grove, IL
    Posts
    99
    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.

  11. #11

    Thread Starter
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    will you give me some code for that....i am new to this

  12. #12

    Thread Starter
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    *BUMP*

  13. #13
    Lively Member
    Join Date
    Nov 2000
    Location
    Sugar Grove, IL
    Posts
    99
    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.

  14. #14

    Thread Starter
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    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

  15. #15

    Thread Starter
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    *bumpety bumpety bump*

  16. #16
    DaoK
    Guest
    Motoxpro you just have to make a batch who will use pkzip and shell it than delete the batch ok Stop bumping now

  17. #17

    Thread Starter
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    how do i make a baatch file?

  18. #18
    DaoK
    Guest
    you save a file with .bat with batch command in it.

  19. #19

    Thread Starter
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    so i make a exe in vb and name it . bat?

  20. #20
    DaoK
    Guest
    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.

  21. #21

    Thread Starter
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    ok so i make a textfile put the winzip command in it save it as a *.bat file then i shell it in vb?

  22. #22
    Hyperactive Member
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    273
    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.
    Carl Odin

  23. #23
    Hyperactive Member
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    273
    Here it is. Sorry but it came with Tweak-XP.
    Rename it to "oca"
    Carl Odin

  24. #24
    Hyperactive Member
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    273
    Obs! Here it is.
    Carl Odin

  25. #25

    Thread Starter
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    what are you talking about.....that zip doesnt work anyhow

  26. #26
    Hyperactive Member
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    273
    Do you never read?
    Rename it to "saxzip.oca"
    Carl Odin

  27. #27
    l33t! MrPolite's Avatar
    Join Date
    Sep 2001
    Posts
    4,428
    get this old dear pkzip, it is for MSDOS but you can use it with shell in VB

  28. #28

    Thread Starter
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    and then what am i suposed to do with a .oca?

  29. #29

    Thread Starter
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    hello?

  30. #30
    DaoK
    Guest
    MotoxPro you are very stressed I think, people do not stay all the time here to check the board, give them time.

  31. #31

    Thread Starter
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    ya i was ...i have just been tring to do this for a LONG time

  32. #32
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    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

  33. #33
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    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.

  34. #34
    DaoK
    Guest
    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.

  35. #35
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    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

  36. #36

    Thread Starter
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    here is the code i have but it wont zip it up it just moves it
    VB Code:
    1. Private Sub Command6_Click()
    2. 'unloading a track by the move function from the source
    3. 'the fullname directory to the dest thetext1 directory
    4. On Error GoTo err:
    5.    Dim fs As New FileSystemObject
    6. fs.MoveFile FullName(Combo1.ListIndex) & "\" & MSFlexGrid1.Text, _
    7. frmgetdir.text1.Text & "\" & Combo1.Text & "\" & MSFlexGrid1.Text
    8. zip.Add "C:\Program Files\Motox Track Pro\Unloaded\QUARRIES" & "\" & MSFlexGrid1.Text
    9. zip.Execute "C:\Program Files\Motox Track Pro\Unloaded\QUARRIES\track1.zip"
    10.        prgloop.Max = LOOPMAX
    11.     For i = 1 To LOOPMAX
    12.         frmMxTrackPro.Caption = "Unloading........" & i
    13.         prgloop.Value = i
    14.         DoEvents
    15.     Next
    16.     frmMxTrackPro.Caption = "Motox Track Pro"
    17.     prgloop.Value = 0
    18.     UpdateLists
    19. err:
    20.     If err.Number = 9 Then
    21.     MsgBox "You forgot to enter your directorys it looks like," & _
    22.     " go to Edit | Directorys and enter your directorys"
    23.     End If
    24.     UpdateLists
    25. End Sub

  37. #37

    Thread Starter
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    dose that help any?

  38. #38
    I'm about to be a PowerPoster! Joacim Andersson's Avatar
    Join Date
    Jan 1999
    Location
    Sweden
    Posts
    14,649
    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

  39. #39
    Hyperactive Member
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    273
    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.
    Carl Odin

  40. #40

    Thread Starter
    Frenzied Member Motoxpro's Avatar
    Join Date
    Sep 2001
    Location
    Spiro, OK
    Posts
    1,211
    when i try it i get Error acheving but it still moves the file

Page 1 of 2 12 LastLast

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