Consulting

Results 1 to 2 of 2

Thread: Solved: Shell Winzip Error

  1. #1

    Solved: Shell Winzip Error


    Hi guys, any ideas why the following code gives the following error?


    Dim WinZip, ZipFile, ZipFileName, FileToZip As String

    WinZip = "C:\Program Files\WinZip\WinZip32.exe"

    ZipFileName = Left(File, InStr(1, File, ".", vbTextCompare) - 1) & ".zip"
    ZipFile = """" & "C:\temp\" & ZipFileName & """"
    FileToZip = """" & FilePath & File & """"


    Call Shell(WinZip & " -a " & " -s" & PassWord() & " " & ZipFile & " " & FileToZip & " -ycaes256", vbHide)

    EventPause (2)

    >>>>>>>>>> ERROR >>>>>>>>>>>>

    Action: Add (and replace) files Include subfolders: yes Save full path: no
    Warning: no files were found for this pattern that match your selection criteria: -ycaes256
    updating qry_daily_leads_ACV.xls
    replacing old Zip file

  2. #2
    Evening Again.

    Since I am working from most recent posts to oldest, I ran across this after your other post. It would appear you've already solved this based on your other thread. Please mark as Solved using the Thread Tools.

    Thanks.
    Scott
    You don't understand anything until you learn it more than one way. ~Marvin Minsky

    I never teach my pupils; I only attempt to provide the conditions in which they can learn. - Albert Einstein

Posting Permissions

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