static void Main(string[] args) { string sRDGFile = string.Empty; string sOutputFile = string.Empty; CreateServerList obj = new CreateServerList(); if (args != null && args.Length == 1) { sRDGFile = args[0].ToString(); //sOutputFile = args[1].ToString(); obj.Createreport(sRDGFile, sOutputFile); } else { Console.WriteLine("USAGE : CreateServerList [RDGFILE] [OUTPUTFILE]"); } }