Disable automatic closing of the command line (CS Script)

I am experimenting with CS-Script , and my problem is that every time I run the script, the console window automatically closes when the script exits. How can I prevent this?

+3
source share
3 answers

If you do not want to modify the script itself, then open a command window and execute the script from the command line. The only reason the console closes after the script completes is because it was created by the script itself. The script does not close the console you opened.

+7
source

, "Ctrl + R" > cmd.exe /k [your command] Console.ReadLine() script.

+3

Console.Read() script.

0
source

Source: https://habr.com/ru/post/1705022/


All Articles