Good evening. There was a problem that I can not implement. There is an application that reads the number of files in the specified folders and subfolders. Data for all folders the application reads simultaneously.
Actually the question is, you need to add functionality that allows you to stop counting files in all directories when you press the ESC button on the keyboard and not lose the already processed data.
And is it possible to stop the application in this way, if it is launched through the command window (Windows console)? Or can it be stopped only if it is launched through the development environment?
If anyone knows how to implement, help)