Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Marietta, Georgia, USA
    Posts
    236
    Thanks
    4
    Thanked 2 Times in 2 Posts

    Re: Send Files (VB6)

    If you are using PkZip, you'll need a recent registered version to access the command line functionality. Here is some example VB script code

    Option Explicit

    Dim WshShell 'Windows scripting shell processor
    Dim lsZipName 'Name of Zip file To extract source

    lsZipName = "My New File.zip"

    'Create instance of Shell to run external programs
    Set WshShell = WScript.CreateObject("WScript.Shell")

    'This waits for the process to finish, based on third parameter [optional]
    WshShell.Run "H:Progra~1PKWAREPKZIPCpkzipc -add " & _
    CHR(34) & "EataVB60Jcopy" & lsZipName & CHR(34) & _
    " EataVB60JcopyIcons*.*" ,,True
    Rick Groszkiewicz
    Life is too short to drink bad wine (or bad coffee!)

  2. #17
    Silver Lounger
    Join Date
    Jun 2002
    Location
    Cheadle, Staffordshire
    Posts
    2,177
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Send Files (VB6)

    Thanks Rick
    I'm still looking at all the options for this.
    I'm undecided whether to use Winzip 8 > CLE or PkZip.

    PkZip doesn't support long file names so not sure how it will stand up in my application.

  3. #18
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Marietta, Georgia, USA
    Posts
    236
    Thanks
    4
    Thanked 2 Times in 2 Posts

    Re: Send Files (VB6)

    Dave, as shown in my example above, PkZip for Windows does support long file names. It can handle ZIP files with long file names, as well as files inside the ZIP with long file names. The DOS version of PkZip does NOT support long file names.

    I have used PkZip for many years, but most people I know prefer WinZip. I believe that WinZip may be less expensive than PkZip.
    Rick Groszkiewicz
    Life is too short to drink bad wine (or bad coffee!)

  4. #19
    Silver Lounger
    Join Date
    Jun 2002
    Location
    Cheadle, Staffordshire
    Posts
    2,177
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Send Files (VB6)

    Rick
    Thanks for the further clarification.
    I'm just looking at the evaluation version at the moment.
    I'll look at your code when I have the download sorted.

Page 2 of 2 FirstFirst 12

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •