Hello everyone:
I was hoping someone might help me with this one. I want to use the command line tool available with WinZip to automate some processes, but in order to get the desired effect I will need to have parts of the command in a variable:

Here's an example of my script:


; Below is what runs fine, I am making the passwords a variable in this example
; SHELL "C:\Program Files\WinZip\WZZIP.EXE -A -S(insert password) C:\MYZIP.ZIP C:\ZIPME.TXT"

If (@MONTHNO = "1")
$pswd = "YIKES"
EndIf

If (@MONTHNO = "2")
$pswd = "SPIKES"
EndIf

If (@MONTHNO = "3")
$pswd = "BIKES"
EndIf

If (@MONTHNO = "4")
$pswd = "NIKES"
EndIf

If (@MONTHNO = "5")
$pswd = "PIKES"
EndIf

If (@MONTHNO = "6")
$pswd = "MIKES"
EndIf

If (@MONTHNO = "7")
$pswd = "FIKES"
EndIf

If (@MONTHNO = "8")
$pswd = "SIKES"
EndIf

If (@MONTHNO = "9")
$pswd = "WIKES"
EndIf

If (@MONTHNO = "10")
$pswd = "ZIKES"
EndIf

If (@MONTHNO = "11")
$pswd = "LIKES"
EndIf

If (@MONTHNO = "12")
$pswd = "VIKES"
EndIf
' Sorry you get the point

$FirstPrt = Chr(34) + "C:\Program Files\WinZip\WZZIP.EXE -A -S"
$LastPrt = " C:\MYFILE.ZIP C:\ZIPME.TXT" + Chr(34)

$String = $FirstPrt + $pswd + $LastPrt

; Since it's April, $String returns "C:\Program Files\WinZip\WZZIP.EXE -A -SNIKES C:\MYFILE.ZIP C:\ZIPME.TXT"
; Here's the problem


SHELL $String




Unless I'm missing something, there is no error, no nothing, it just doesn't do it! The bad news for me is things are about to get trickier, I will have to have the source and resulting ZIP filenames as variables as WELL as the password part of the command.

Does anyone have any ideas? Before I posted I searched the BB for the keywords Shell and Variable and I read the UDF on WSHPIPE()
Thanks Guys!!