Hi,
Use a Configuration file for the Batch process.
Update the config file by getting the data from the xml file.
Sample XML File:
="1.0"="utf-8"
<Employees>
<Emp>
<Id>101</Id>
<Name>Rajesh</Name>
</Emp>
<Emp>
<Id>102</Id>
<Name>Anand</Name>
</Emp>
<Emp>
<Id>103</Id>
<Name>Venky</Name>
</Emp>
</Employees>
Sample Code to read a Value from XML File:
public string GetValue()
{
DataSet ds = new DataSet();
ds.ReadXml(@"C:\MyFile.xml");
string myValue = ds.Tables[0].Rows[0][1].ToString();
return myValue;
}
Now the required value from XML file is ready, update the config file with the specific value.