Richard,

Why are you not using @WKSTA that is inbuild to KiXtart? While %COMPUTERNAME% will work, there are quite a few macros that are available from KiXtart.

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's