There are at least two ways to pass arguments to Kix scripts..

The first is to actually define the args as Variables on the command line
 Code:
Kix32.exe myscript.kix $ARG1="something" $ARG2="else"
This is easy, but the downside is that the variables you define on the command line are GLOBAL in scope. It's also a bit cumbersome unless you wrap it in a batch file.

The next way is to use the GetCommandLine() function. With this, you can run something like
 Code:
kix32.exe myscript.kix --s:sourcepath --d:destpath
You need to extract this data and put it into your own vars (or use the array). Here's an example adapted from a current project:
 Code:
; Get the source & dest args specified on the command-line

; get the command line as an array - elements 0 & 1 are the kix.exe and the script.kix items
$aCmdLine = GetCommandLine(1)

; scan the array looking for the source arg
$ = AScan($aCmdLine, '--s:', , , 1)		; get SOURC arg
If $ > 1					; 
  $Source = SubStr($aCmdLine[$], 5)
Else						; arg is required - die if not provided
  'ERROR: Source was not specified!' @CRLF @CRLF
  'Usage: myscript.kix --S:Source_path --D:destination_path' @CRLF
  Quit 1
EndIf

; scan the array looking for the destination arg
$ = AScan($aCmdLine, '--d:', , , 1)		; get destination arg
If $ > 1					; 
  $Dest = SubStr($aCmdLine[$], 5)
Else						; arg is required - die if not provided
  'ERROR: Destination was not specified!' @CRLF @CRLF
  'Usage: myscript.kix --S:Source_path --D:destination_path' @CRLF
  Quit 1
EndIf
Using the command line args can be a tad tricky, especially since the built-in kix32.exe parameters can get in the way. Be sure to use "--" as your argument delimiters.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D