I have a C# console application AAA.exe which can return an integer to indicate the result
static int Main(string[] args)
  {
    . . .
    if(case1)
       return -1;
    if(case2)
       Environment.Exit(1);
    return 0;
}
I will call AAA.exe in a batch file and need the return value
AAA.exe /p="param1"
My question is:
- how to get the return value of AAA.exe?
- is there any difference between return 0;andEnvironment.Exit(0);statements?