i want to run the DOS command as a bat file through web control page
emctl config agent credentials %hostname:%instancename
this command works as follows in linux as
$PROMPT>./emctl config agent credentials emrep10.acme.com
racle_database
Oracle Enterprise Manager 10g Release 10.1.0.2.0
Copyright (c) 2002, 2003 Oracle Corporation. All rights reserved.
Name = emrep10.us.oracle.com, Type = oracle_database
Want to change for "UserName" (y/n):n
Want to change for "password" (y/n):y
Enter the value for "password" :*******
EMD reload completed successfully
this command is in say d:/oracle/agent/bin directory windows2000
this has to run as a batch file and has to read the hostname and instancename from a file
(there are 100 host and instance name)
also the interactive part ie username and password has to be ('n','y') this has to be provided to the command when it ask for this from the file
also the new password has to be read from the file and feed to the command
and this has to be for all the host and instance name provided in the file
it has to run on windows
plz help