Pech,

Most Administrators would map drives this way..
code:
USE H: "\\server\" + @USERID + "$"

But you may not be using hidden shares, so it would be:
code:
USE H: "\\server\" + @USERID

The point being, why aren't you using the KiXtart Macros like @USERID?

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