Cmd.exe parsing through anonymous pipe.
Here's an interesting issue I currently found. This is for C & winAPI.
So, I created 2 IO pipes from which I allowed inheritance of the standard handles provided by CreateProcess() on cmd.exe.
I'm reading/writing with the following functions -> ReadFile() & WriteFile() to the pipe & everything seems to work fine - however:
After writing to the pipe "cd ..\\r\n", any other following command outputs "More?". This only happens in some cases, whereas others like "tasklist\r\n" provides no errors.
Anyone happen to know what is causing it?
Thank you.