Pech, let's start small first.

In the following code:
code:
IF "%OS%" == "Windows_NT"
MapDrive("h:", "bstl_svr3", "%username%$")
? "mapping h: to homeshare: "
else
MapDrive("h:", "bstl_svr3", "@USERID$")
? "mapping h: to homeshare: "
endif

The "IF" construct is not needed as both MapDrive statements are identical.

You should replace the above code with:
code:
MapDrive("h:", "bstl_svr3", @USERID + "$$")  



[ 26. November 2002, 03:17: Message edited by: Howard Bullock ]
_________________________
Home page: http://www.kixhelp.com/hb/