Hi Stephen,
I do the same thing to log on to other NT workstations..
DECLARE INTEGER WNetAddConnection IN win32api;
STRING, STRING, STRING
** cPrimaryComputer = The Computer's Name eg. \\REG-001
** cNetPass = If password is different from your current computer
** cdrive = drive name you want to uses as eg. A: or x: or n:
nRetval= WNetAddConnection(cPrimaryComputer,cNetPass,cDrive)
IF nRetval=0 OR nRetval=85 the connection is OK.
Otherwise there is a problem.
Fred Besterwitch, MCP
The harder you work. The luckier you get.