I need to substring the result of a variable %COMPUTERNAME and check the first 2 characters of that string.
So for example, if %COMPUTERNAME yields AB12345, I need to check that the string starts AB.
Is there an easy way to do this in a login script.
I've messed around with...
but can't seem to get ether the syntax right or I'm misunderstanding it completely!

Any help very much appreicated.

Ta... Allan.