|
Hi NTDOC, thanks for your suggestions, but the variable will be set while first login after installation, the user needs it earliest after 3rd login. so i'll keep it as simple as possible.
I completed the script: to work on terminalservers, I need to identify the name of the client-pc. we have old clients (name less than 8char) and new clients (exactly 10 char) so for a user, i have to decide, wether he is working on terminalserver or localPC. if working on terminalservers i have to decide, wether a new pc (10char) or a old pc (<8char) is in use. so the script is something like this:
If not "%Clientname%"="" $="%Clientname%" $x=len(%clientname%) IF $x<9 Set "term="+$ Else $=SubSTR($,1,2)+SubSTR($,4,1)+SubSTR($,6) Set "term="+$ EndIF Else $=@WKSTA $=SubSTR($,1,2)+SubSTR($,4,1)+SubSTR($,6) Set "term="+$ EndIF
Perhaps not the best way to solve that, but it seems to work... greetz from bavaria, bene
|