public static void Main(string[] args)
{
for (int i = 0; i < args.Length; i++)
{
Console.WriteLine("{0}", args[i]);
}
Console.ReadKey(true);
}
namespace Looping_in_console
{
class Program
{
static void Main(string[] args)
{
bool doContinue = true;
while (doContinue)
{
// read input values
string input = Console.ReadLine();
// Do you processing and print results
// On the next iteration you may continue
Console.WriteLine("You typed '"+ input + "'");
// To exit - type "exit", for example
if (input.ToLower() == "exit")
{
doContinue = false;
Console.WriteLine("Good bye!");
Console.ReadLine();
}
}
}
}
}
start /B AppName.exe ParamsHere
or start /B /D "Directory Path Here" AppName.exe ParamsHere
They both start the app in a new window.