ZIP file and copy in other dir

User avatar
sal21
PlatinumLounger
Posts: 4362
Joined: 26 Apr 2010, 17:36

ZIP file and copy in other dir

Post by sal21 »

My arranged code:

Code: Select all

strCmd = "C:\Program Files\Winzip\winzip32.exe -a -ex " & "C:\TEST\" & NOME_FILE & ".zip " & "C:\MF\" & File
    'Debug.Print strCmd
    retVal = Shell(strCmd, vbHide)
i need to zip and move the file from C:\MF\" & File into C:\TEST\" & NOME_FILE & ".zip

but i dont think is correct :scratch:

If is possible with a Namespce.... because not all pc have the fixed dir where the Zip application reside

User avatar
HansV
Administrator
Posts: 78524
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: ZIP file and copy in other dir

Post by HansV »

Sorry, no idea.
Best wishes,
Hans