I have an Console Application that looks similar to this:
static void Main(string[] args)
{
if(args.Length == 0)
{
//do something
}
else if(args.Length % 2 == 0)
{
//do something else
}
}
Now when I build and start my .exe file it just opens for an blink of an eye to run the code and closes.
Is it possible that the .exe waits for me to enter parameters after starting it?
I know I can open cmd and write the directory to my file and write my parameters (C:\Example\MyExe.exe -Parameter1). But is this the only way?