Hi,
I'm not sure which OS you are targetting, but heres a few small points for the NT \ XP family. Firstly, use the cmd extension rather than bat (IE myscript.cmd). Although the functionality is the same in each, with NT \ XP all command shell actions are executed by cmd.exe, if you use the bat extension then command.com is called, but is run virtually via a cmd.exe session (thats why the advanced functionality of the NT shell is available even though you are using the old command interpreter - command.com is only included to allow backwards compatibility with old batch files that may contain functionality which makes calls to the old msdos subsystem) . Using the cmd extension removes the additional 'layer', and has your script executed directly by cmd.exe. The saving is trivial, but it's a good practice to get into. Secondly, with NT \ XP you can add the following to your net use command -
net use d: \\myserver\myshare /PERSISTENT:NO
This means that your mappings will notpersist across logouts \ reboots, otherwise by default (again, with NT \ XP) they will. Also, as this will be a login script, and assuming there are no permanent mapped drives you wish to keep, you can delete any existing mappings with one line -net use * /d /y
Lastly, I take it these are domain logins (IE you called it DC login). If the login account is a domain account, then you can store one copy of the script in the netlogon share of each domain controller, and 'attach' the script tothe user account by adding it to the login script portion of the account details in user manager (or the win2k equivalent 'users and computers'). Use the syntax
\\%logonserver%\netlogon\myloginscript.cmd
Hope at least some of this is relevant....