The problem is that the script will accept an optional command line parameter like this:
code:
wkix32.exe shutdown.kix $sComputer='workstation'

The script is supposed to use the workstation name if no parameter is passed into the script. Thus, I'm using IsDeclared to see whether a parameter has been passed into the script. If not, then GLOBAL $sComputer and set it to the workstation name.

[ 05. December 2002, 17:19: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.