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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

batch file username and password

Status
Not open for further replies.

sirron

Programmer
Mar 11, 2004
139
US
I have a batch file that runs a batch file

But this batch file has a custom cmd prompt.

When I run it it asks for a username and password.
I have the username and password.

How can I run it automaticly input the username password
username: admin
password changeme

example:

C:\bat>rem @echo off

C:\bat>C:

C:\bat>cd\CNR\NetworkRegistrar\bin

C:\CNR\NetworkRegistrar\bin>nrcmd.bat
username:

and this is the code

rem @echo off
C:
cd\CNR\NetworkRegistrar\bin
nrcmd.bat
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top