Computing.Net > Forums > Disk Operating System > DOS login from Batch.

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

DOS login from Batch.

Reply to Message Icon

Name: Cal
Date: August 14, 2001 at 02:10:14 Pacific
Comment:

How to make the Dos-client to do an domain login or map a network disk from a script without prompting for username/password?



Sponsored Link
Ads by Google

Response Number 1
Name: Grant
Date: August 15, 2001 at 19:30:39 Pacific
Reply:

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.fil

Hopefully 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.


0
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: DOS login from Batch.

DOS prompt from C++ www.computing.net/answers/dos/dos-prompt-from-c/3711.html

dos batch script problem www.computing.net/answers/dos/dos-batch-script-problem/13559.html

setting a dos variable from text file www.computing.net/answers/dos/setting-a-dos-variable-from-text-file/7785.html