Generally,I think

IF "%LogonServer%\ComputerName"

will always be true because it is non zero. Are you missing an equal sign & something to test it against? Wouldn't this work best with a Select/Case statement.

_________________________
Jack