Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
How to make the Dos-client to do an domain login or map a network disk from a script without prompting for username/password?

I have had good luck with this under Novell, I don't know if it will work via net command or not, but here you go. Have a text file on the drive that contains the user name and password. here is how I make mine:
c:\>echo userid>secret.fil
c:\>echo passwd>>secret.fil
c:\>echo.>>secret.fil
Note the lack of a space after the last echo and the period, this will add a CR/LF to the end of the file.Then you call you actual logon command as in:
net use * \\server\share < secret.filHopefully this will make net pull it's imput from the file secret.fil. The obvious draw back to this is your name and password are stored as clear text on the disk, you need to be carefull how you name it. ;)
Any Hou, good luck.
P.S. drop me an email, drscriptt@yahoo.com, if you need any thing.

![]() |
![]() |
![]() |

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |