Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Batch file in Win 2000 Server

Status
Not open for further replies.

cp4720

MIS
Sep 10, 2001
9
MY
Hi,

I need help to allow me to write a batch file that execute in win 2000 server.
This batch file will answer some prompts such as:

username :
password :

etc

For your info, these prompts has been written down in notepad and save as .txt file.

I have started to write as per below in a .bat file but I don't know how to continue to call the .txt file which have the prompt answers.

echo off
c:
exp

Pls help.....


 
... have you tried echo <username>|<command> ? Sometimes this works... however, it will only answer one prompt. If you're trying to map network drives, you can specify user and passwd on command line. see net /?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top