I have the following code:
static void Main(string[] args)
{
string edifile = args[0].ToString();
string editype = args[1].ToString();
string orderpath = @"C:\Tremor\MXSG\Orders\";
ReadPurchaseOrders(edifile, orderpath, editype);
}
In a batch file I am passing string parameters:
Start C:\Tremor\EDIHUB\ReadEDI.application "C:\Temp\testedi\Arrow_ORDERS_D97A_1_20171002_053002_0000038641.txt" "EdifactOrders"
Error says:
Index was outside the bounds of the array.
Any ideas why I would get this error? Any help would be appreciated!