I think "\\r\n" willAfter writing to the pipe "cd ..\\r\n",
1) convert \\ to "\"
2) leave 'r' alone
3) convert \n to newline.
You're trying to send \r\n, but aren't? Might not be the cause of the problem..might be? Idk, but post code and I'll experiment with it : )