gunsmokingman. Thank for your reply, I can't see how a web page can control drive mapping? Yzowl. Thank for your reply, but i just need to hide the password, so it's looks like I need to go down the VBS route. I am not that bother about error checking the batch file, if they type something wrong, the script fails and they don't get connected. I have tried the code in a batch file, but I got this error. Any further suggestions? Thank you for your help. Steve E:\>{\rtf1\ansi\ansicpg1252\deff0\deflang2057{\fonttbl{\f0\froman\fcharset0 Time s New Roman;}{\f1\fswiss\fcharset0 Arial;}} The system cannot find the path specified. E:\>{\*\generator Msftedit 5.41.21.2508;}\viewkind4\uc1\pard\sb100\sa100\f0\fs24 @Echo off\line (Echo/wsh.echo "You entered: ", _\line Echo/ join(passwordbox(" Enter UID and password", "Testing"), ", ")\line Echo/\line Echo/' A function to present a Password dialog in a VBS (WSF) script\line Echo/' Requires WScript ver sion 5.1+\line Echo/' Tom Lavedas <tlave...@hotmail.com>\line Echo/Function Pass wordBox(sPrompt, sDefault)\line Echo/ set oIE = CreateObject("InternetExplorer.A pplication")\line Echo/ With oIE\line Echo/ .ToolBar = False\line Echo/ .Registe rAsDropTarget = False : .Navigate("about:blank")\line Echo/ While .Busy : WScrip t.Sleep 100 : Wend\line Echo/ With .document\line Echo/ With .ParentWindow\line Echo/ if Instr(.navigator.appVersion, "MSIE 6") = 0 Then\line Echo/ oIE.FullScre en = True\line Echo/ .resizeto 400,180\line Echo/ .moveto .screen.width/2-200, . screen.height/2-90\line Echo/ else\line Echo/ .resizeto 400,230\line Echo/ .move to .screen.width/2-200, .screen.height/2-115\line Echo/ End if\line Echo/ End Wi th\line Echo/ .Write("<html><head><" & "script>bboxwait=true;</" & "script>" _\l ine Echo/ & "<title>Password _____________________________ </title>" _\line Echo / & "</head><body bgColor=Silver scroll=no language=vbs" _\line Echo/ & " onkeyp ress=""if window.event.keycode=13 Then" _\line Echo/ & " bboxwait=false""><cente r><b> " & sPrompt & "<b> <p>" _\line Echo/ & "<table><tr><td> <b>User:</b></td>< td>" _\line Echo/ & "<input type=text id=user value='" & sDefault & "'>" _\line Echo/ & "</td><tr><td> <b>Password:</b></td><td>" _\line Echo/ & "<input type=pa ssword id=pass></td></tr></table><br>" _\line Echo/ & "<button onclick=""bboxwai t=false;""> Submit </button>" _\line Echo/ & "</center></body></html>")\line Ech o/ .ParentWindow.document.body.style.borderStyle = "outset"\line Echo/ .ParentWi ndow.document.body.style.borderWidth = "3px"\line Echo/ .all.user.focus\line Ech o/ On Error Resume Next\line Echo/ Do While .parentWindow.bBoxWait\line Echo/ oI E.Visible = True\line Echo/ if Err Then Exit Do\line Echo/ WScript.Sleep 100\lin e Echo/ Loop\line Echo/ oIE.Visible = False\line Echo/ if Err Then\line Echo/ Pa sswordBox = Array("CANCELLED")\line Echo/ Else\line Echo/ PasswordBox = Split(.a ll.user.value & "|" _\line Echo/ & .all.pass.value, "|")\line Echo/ End if\line Echo/ On Error Goto 0\line Echo/ End With ' document\line Echo/ End With ' IE\li ne Echo/End Function)\line Cscript //NoLogo c:\Windows\Temp\\_$.vbs\line Del c:\ Windows\Temp\\_$.vbs\line Pause\par 1>c:\Windows\Temp\\_$.vbs The system cannot find the path specified. E:\>\pard\f1\fs20\par The system cannot find the path specified. E:\>} '}' is not recognized as an internal or external command, operable program or batch file.