ghana
Using standard batch commands it isn't possible to enter the password and have it displayed as other than clear text. You have a couple of choices:
Present the script as a web page or convert it to VBScript using an input box.
Replace the net use commands with this:
net use I: \\SERVER01\share * /USER:DOMAIN\%USERID% /PERSISTENT:no
net use J: \\SERVER02\share * /USER:DOMAIN\%USERID% /PERSISTENT:no
net use K: \\SERVER03\share * /USER:DOMAIN\%USERID% /PERSISTENT:no
The net use command itself will ask for the password, which is then not displayed. You will have to remove the bit at the start of the script that asks for a password. The downside of this is that each net use command will probably ask for a password - but if you're lucky it will cache the first one and you'll only get asked once. Only testing will tell you for sure.
Cheers
JamesDS
Main Topics
Browse All Topics





by: leewPosted on 2005-04-19 at 00:18:25ID: 13813209
I'll be interested to see if someone comes up with a way; I've never seen one.