scriptaddict
Programmer
I am running command line zip instructions in a Visual Basic 6.0 program.
The problem is the winzip command line does not work when the "Target File" or "Source File" drive path is something other than C:\.
Here is my VB code:
Dim Sourcefile4 As String
Dim TargetFile4 As String
These two do not work
'Sourcefile4 = "\\venkman\npsftp\AHP\Elig Update Request\Import.txt"
'TargetFile = "\\fletch\root\Eligibility\archpgp2\" & "TEST_EIL00.ZIP"
These two work just fine
Sourcefile4 = "c:\testzippy.txt"
TargetFile4 = "c:\testzippy2.zip"
Call Shell("C:\Program Files\WinZip\WZZIP.EXE " & TargetFile4 & " " & Sourcefile4, vbHide)
Thanks, for the help.