OK let me a level of complexity since it is not as simple as cd..

I am trying to write a script that uses winzip command line to zip up evt files that have been archived to a different server, and name the .zip with the current month and year. Here is the code.

code:

Break on
$m=@MONTH
$y=@YEAR
$arc="archive00"
Dim $servers[3]
$servers="server1","server2","server3","server4"
For Each $Element In $servers
$serv=$Element
Use x: "\\logserver\archive" @ERROR
Go x: @ERROR
Cd $serv @ERROR
Cd $arc @ERROR
Dim $target[2]
$target="application","system","security"
For Each $element In $target
$folder=$element
Cd $folder
Run "%comspec% /c wzzip -ybc $y$m-system.zip" @ERROR