You are not logged in.
I have a batch file that update some folders from a remote computer to a local computer.
I need to log in remote computer (by dialog window) before the batch files can work.
How can I put "log-in commands" inside the batch file?
Thank you very much
Offline
Join a password protected file share (Drive MAP)
NET USE [driveletter:] \\ComputerName\ShareName[\volume] [password | *]
[/USER:[domainname\]username] [/PERSISTENT:No]
That said, think carefully about putting plain text passwords into a script!
Offline
Or you can do that automatically using some commercial tools like Scriptlogic's Desktop Authority. It can map drives making decision on whom they should be mapped to based on properties contained within the Active Directory. That's secure because of use of standard Kerberos authentication and no need to pass value and names as a plain text. Rule assignment implemented in very handy way here as I can say after using series of similar utilities.
Offline