This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
using System.Data; | |
using System.Data.OleDb; | |
using System.Net; | |
using System.Collections; | |
namespace readInputsFromConsole | |
{ | |
class Program | |
{ | |
public static string siteURL = null; | |
public static string inputExcelFile = string.Empty; | |
static void Main(string[] args) | |
{ | |
// Read the Requires parameter to get the path of the input files | |
//Start | |
if (args == null || args.Length < 2) | |
{ | |
Console.WriteLine("ERROR in input..."); | |
Console.WriteLine("Enter an valid Input"); | |
Console.ReadLine(); | |
return; | |
} | |
siteURL = args[0]; | |
inputExcelFile = args[1]; | |
readExcel(siteURL, inputExcelFile); | |
//End | |
//If you want to hard code use below code.. Start | |
/* | |
siteURL = "www.google.com"; | |
inputExcelFile = @"C:\MyData.xlsx"; | |
readExcel(siteURL, inputExcelFile); | |
*/ | |
//If you want to hard code use below code.. End | |
} | |
} | |
} |