Two ways:
 Code:
Kix32 myscript.kix $Varname="This is the value"
This will define a $Varname GLOBAL variable that you can directly access in your script. The problem with this approach is that if the variable isn't supplied and you have Explicit=On, your script will fail.
 Code:
Kix32 myscript.kix --f:"this is the file path"
This requires a bit more effort, but is usually preferred. Here's how you use it:
 Code:
$aTemp = GetCommandLine(1)  ; command line as array.
; elements 0 and 1 are "kix32.exe" and the script name, so start with 2.
For $X = 2 to UBound($aTemp)
  If InStr($aTemp[$X], '--f:')        ; found the filespec directive
    $FileSpec = SubStr($aTemp[$X], 5) ; position 5 and beyond is the filespec value
  EndIf
Next
At this point, your $Filespec variable will either contain everything after "--f:" or will be empty. Works well with Explicit=On. You could eliminate the "--f:" part and assume that the argument is the filespec, but we all know what happens when we assume. Using the --f:path format forces the definition to be intentional rather than assumed.

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