command line argument
Posted on 2011-02-18
Hi, Have a look at this Main function in my .Net windows application:
static void Main(string args)
if (args.Length == 2)
DDIManager.DatabaseServer = args.Trim();
DDIManager.DatabaseName = args.Trim();
Logger.Information("Working with database '" +
DDIManager.DatabaseServer + "\\" +
DDIManager.DatabaseName + "'");
dDIManager = new DDIManager();
catch (Exception exp)
I have been looking into whole solution to find the connection string for this project but found nothing. But by the looks of it this must be paased as a command line argument and, if that is the case where do I find what has been passed?
Is that the location where this executable is running from.