Specifying a password and username is only for when the currently logged in user can't authenticate with the host system in the first place. Obviously its not advisable to keep super secret usernames and passwords in a plain text file.
-Tharin O. j maccraw <[EMAIL PROTECTED]> wrote: I'd leave the password part out since windows should use the logged in user password anyway to authenticate. In fact if username is not domain based or an account other than current login, then there is no reason to add it since the current un/pw is sent automatically. At 03:21 PM 7/27/2007, Tharin Olsen Poked the stick with: >> Yes the prompting about deleting the drive maps would occur on Windows 2000/9x. There are still a lot of Windows 2000 machines in my town it seems. >> >> An example of a batch file would be something like the following >> >> >> <--------------- Begin FixDrives.bat ----------------> >> >> @echo off >> >> rem A message that is displayed while the script is processed. >> echo Please wait while your network drives are recreated. >> >> rem Our first command deletes any existing drive mappings >> net use * /delete /y >> >> rem Next we recreate the shared drives >> net use p: "\\computer1\public" PASSWORD /user:USERNAME >> net use t: "\\computer2\finance" PASSWORD /user:USERNAME >> net use z: "\\computer3\admin" PASSWORD /user:USERNAME