Under pure DOS, when calling an executable that needs a keypress confirmation. If I press Y according to the prompt, it can execute normally to the end. But when using the pipe command echo Y|a.exe, the program hangs when it reaches the prompt line, and there is no response no matter what I press on the keyboard, but the indicator lights are all normal. Also, this command works correctly with other executable programs. What is causing this?

