I have some tools that get args passed on the command line. However, it's possible that the tool could be called directly instead of by the bat file, and the var won't be declared. Here's one way I handle that situation, where the lack of a value prints an error message, or possibly takes a default value:
Code:
If Not IsDeclared($CL_ARG)		; is usually passed, but must be declared if not passed
Global $CL_ARG
; can define default value here
EndIf



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