look at Use the Net Use command to map or disconnect a drive at How to connect and disconnect a network drive in Windows XP