Shouldn't it be %CLIENTNAME% ? @WKSTA is the local workstation.

To expand on this - type SET | more from the CMD Line to see what other enviro variables are available from TS Session.

Kent

[ 16. May 2003, 18:46: Message edited by: kdyer ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's