Vbzipfrm.frm 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130
  1. VERSION 5.00
  2. Begin VB.Form Form1
  3. AutoRedraw = -1 'True
  4. Caption = "Form1"
  5. ClientHeight = 3150
  6. ClientLeft = 60
  7. ClientTop = 345
  8. ClientWidth = 6570
  9. BeginProperty Font
  10. Name = "MS Sans Serif"
  11. Size = 9.75
  12. Charset = 0
  13. Weight = 700
  14. Underline = 0 'False
  15. Italic = 0 'False
  16. Strikethrough = 0 'False
  17. EndProperty
  18. LinkTopic = "Form1"
  19. ScaleHeight = 3150
  20. ScaleWidth = 6570
  21. StartUpPosition = 1 'CenterOwner
  22. End
  23. Attribute VB_Name = "Form1"
  24. Attribute VB_GlobalNameSpace = False
  25. Attribute VB_Creatable = False
  26. Attribute VB_PredeclaredId = True
  27. Attribute VB_Exposed = False
  28. Option Explicit
  29. '---------------------------------------------------------------
  30. '-- Please Do Not Remove These Comments!!!
  31. '---------------------------------------------------------------
  32. '-- Sample VB 5 code to drive zip32.dll
  33. '-- Contributed to the Info-ZIP project by Mike Le Voi
  34. '--
  35. '-- Contact me at: mlevoi@modemss.brisnet.org.au
  36. '--
  37. '-- Visit my home page at: http://modemss.brisnet.org.au/~mlevoi
  38. '--
  39. '-- Use this code at your own risk. Nothing implied or warranted
  40. '-- to work on your machine :-)
  41. '---------------------------------------------------------------
  42. '--
  43. '-- The Source Code Is Freely Available From Info-ZIP At:
  44. '-- http://www.cdrom.com/pub/infozip/infozip.html
  45. '--
  46. '-- A Very Special Thanks To Mr. Mike Le Voi
  47. '-- And Mr. Mike White Of The Info-ZIP project
  48. '-- For Letting Me Use And Modify His Orginal
  49. '-- Visual Basic 5.0 Code! Thank You Mike Le Voi.
  50. '---------------------------------------------------------------
  51. '--
  52. '-- Contributed To The Info-ZIP Project By Raymond L. King
  53. '-- Modified June 21, 1998
  54. '-- By Raymond L. King
  55. '-- Custom Software Designers
  56. '--
  57. '-- Contact Me At: king@ntplx.net
  58. '-- ICQ 434355
  59. '-- Or Visit Our Home Page At: http://www.ntplx.net/~king
  60. '--
  61. '---------------------------------------------------------------
  62. ' This is the original VB example (with some changes) for use
  63. ' with Zip32.dll (Zip 2.31) but not Zip32z64.dll (Zip 3.0).
  64. '
  65. ' Minor changes to use current directory and VB project files
  66. ' for the example and to turn off encryption.
  67. '
  68. ' The VB example provided with Zip 3.0 is more extensive. Even
  69. ' if you plan to use the updated zip32.dll instead of the new
  70. ' zip32z64.dll (Zip 3.0), there may be some things you might find
  71. ' useful in the VB example there.
  72. '
  73. ' 2/27/2005 Ed Gordon
  74. '---------------------------------------------------------------
  75. Private Sub Form_Click()
  76. Dim retcode As Integer ' For Return Code From ZIP32.DLL
  77. Cls
  78. '-- Set Options - Only The Common Ones Are Shown Here
  79. '-- These Must Be Set Before Calling The VBZip32 Function
  80. zDate = vbNullString
  81. 'zDate = "2005-1-31"
  82. 'zExcludeDate = 1
  83. 'zIncludeDate = 0
  84. zJunkDir = 0 ' 1 = Throw Away Path Names
  85. zRecurse = 0 ' 1 = Recurse -r 2 = Recurse -R 2 = Most Useful :)
  86. zUpdate = 0 ' 1 = Update Only If Newer
  87. zFreshen = 0 ' 1 = Freshen - Overwrite Only
  88. zLevel = Asc(9) ' Compression Level (0 - 9)
  89. zEncrypt = 0 ' Encryption = 1 For Password Else 0
  90. zComment = 0 ' Comment = 1 if required
  91. '-- Select Some Files - Wildcards Are Supported
  92. '-- Change The Paths Here To Your Directory
  93. '-- And Files!!!
  94. ' Change ZIPnames in VBZipBas.bas if need more than 100 files
  95. zArgc = 2 ' Number Of Elements Of mynames Array
  96. zZipFileName = "MyFirst.zip"
  97. zZipFileNames.zFiles(0) = "vbzipfrm.frm"
  98. zZipFileNames.zFiles(1) = "vbzip.vbp"
  99. zRootDir = "" ' This Affects The Stored Path Name
  100. ' Older versions of Zip32.dll do not handle setting
  101. ' zRootDir to anything other than "". If you need to
  102. ' change root directory an alternative is to just change
  103. ' directory. This requires Zip32.dll to be on the command
  104. ' path. This should be fixed in Zip 2.31. 1/31/2005 EG
  105. ' ChDir "a"
  106. '-- Go Zip Them Up!
  107. retcode = VBZip32
  108. '-- Display The Returned Code Or Error!
  109. Print "Return code:" & Str(retcode)
  110. End Sub
  111. Private Sub Form_Load()
  112. Me.Show
  113. Print "Click me!"
  114. End Sub