1.

Solve : Setup Maps off of two different Usernames?

Answer»

I need to setup a batch that will map my the network drives for me based on 2 seperate domain passwords. One Domain uses different username and passwords per user the other the same username and password REGARDLESS. I alos need to disconnect all drives before continuing. So here is what I have so far.

Code: [Select]@ ECHO OFF

:START

'PTC MAPS
net use F: \\PTC1SVR204\dallas /user:%username% /PERSISTENT:yes
net use G: \\PTC1SVR206\colorado /user:%username% /persistent:yes
net use H: \\PTC1SVR204\noc /user:%username% /persistent:yes

'JSA Maps (L is a must for system application)
net use K: \\server\g\scans /user:ABC /persistent:yes
net use L: \\server\c /user:ABC /persistent:yes
net use M: \\server\e /user:ABC /persistent:yes

'IVS Maps
net use S: \\PTC1SVR204\productionbatches /user:%username% /persistent:yes
net use T: \\PTC1SVR204\archivedbatches /user:%username% /persistent:yes
net use U: \\PTC1SVR205\ivsscans\scans /user:%username% /persistent:yes
net use V: \\PTC1SVR205\ivsscans\splitdocs /user:%username% /persistent:yes



:ENDSide Note: I have only ever used batch files before to copy files or start SOFTWARE (you know, one liners) so take it easy on me.Well let me ask this:

How can I set the password from within the script?



Discussion

No Comment Found