ube100
asked on
command line argument
Hi, Have a look at this Main function in my .Net windows application:
static void Main(string[] args)
{
try
{
if (args.Length == 2)
{
DDIManager dDIManager;
DDIManager.DatabaseServer = args[0].Trim();
DDIManager.DatabaseName = args[1].Trim();
Logger.Information("Workin g with database '" +
DDIManager.DatabaseServer + "\\" +
DDIManager.DatabaseName + "'");
dDIManager = new DDIManager();
//dDIManager.ProcessReturn edAUDDACIn structions ();
//dDIManager.ProcessReturn edARUDDIns tructions( );
//dDIManager.ProcessReturn edAUDDISIn structions ();
dDIManager.ProcessNewDDIs( );
dDIManager.ProcessAmendedD DIs();
}
else
{
Help("Invalid parameters");
LogHelp("Invalid parameters");
}
}
catch (Exception exp)
{
Logger.Error(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.
static void Main(string[] args)
{
try
{
if (args.Length == 2)
{
DDIManager dDIManager;
DDIManager.DatabaseServer = args[0].Trim();
DDIManager.DatabaseName = args[1].Trim();
Logger.Information("Workin
DDIManager.DatabaseServer + "\\" +
DDIManager.DatabaseName + "'");
dDIManager = new DDIManager();
//dDIManager.ProcessReturn
//dDIManager.ProcessReturn
//dDIManager.ProcessReturn
dDIManager.ProcessNewDDIs(
dDIManager.ProcessAmendedD
}
else
{
Help("Invalid parameters");
LogHelp("Invalid parameters");
}
}
catch (Exception exp)
{
Logger.Error(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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER