Click to See Complete Forum and Search --> : Resolve computernames


ukau
March 12th, 2002, 03:45 AM
Hi

I´m using kixtart on NT4srv and logging in with W9x/NT4wks.
Could anyone give me a hint on how to resolve the 3 first letters in W9x/NT4 computername, ie; "ibm01" should result in "ibm" & "staff07" should be "sta".
This so I can send different computers new shortcuts and reg.changes when they login.

unix fan
March 12th, 2002, 04:20 AM
$PCNAME = SUBSTR(@WKSTA,1,3)

ukau
March 12th, 2002, 08:46 AM
tnx a lot,,,worked fine.