how to pick and pass two parameters while running a bat file?



I'm doing automation to perform application migration. Created a .bat file with the below code


cd c:\bin\


apputility.bat c:\backup\migration.xml


Now I want to run the same .bat script to migrate multiple applications by picking up two strings from an excel file. passing those two strings to the migration.xml file. so whenever The bat script runs it needs to run the same migration.xml by passing those to strings. The excel file will be like this


app1 app1


app2 app2


app3 app3


app4 app4


whenever the .bat runs,it should run passing "app1" "app1" parameters into migration.xml. If there are 4 rows it needs to run 4 times.


Thanks in advance and hoping for the quick assistance.


No comments:

Post a Comment