string strcmd= ":START cls echo What Type of Math would you like to do?"+
"echo Add, Subtract, Multiply, or Divide." +
"set /p math=IF '%math%' == 'Add' GOTO ADD"+
"IF '%math%' == 'add' GOTO ADD"+
"IF '%math%' == 'Subtract' GOTO SUB"+
"IF '%math%' == 'subtract' GOTO SUB"+
"IF '%math%' == 'Multiply' GOTO MULTIPLY"+
"IF '%math%' == 'multiply' GOTO MULTIPLY"+
"IF '%math%' == 'Divide' GOTO DIVIDE"+
"IF '%math%' == 'divide' GOTO DIVIDE"+
"Exit";
System.Diagnostics.Process.Start("CMD.exe",strcmd);
When I run this code, Command Prompt screen appears for a sec and disappears. I want this code to be able to run in the command prompt and let the user enter a value through the command prompt. How can I do that ? (PS: I used the calculator script just as an example. I also do not want to use the .cmd file directory) I have tried this and did not really work for me.
Thanks in advance.