Command prompt doesn't recognize unicode input through pipes

  • Thread starter Thread starter jaga_2221
  • Start date Start date
J

jaga_2221

Guest
Hi ,

I am trying to send input to cmd.exe through pipes.But pipes are limited to char(single byte stream), So if i send non-ascii input(by converting using WideCharToMultibyte()) , input gets scrambled.

I think psexec is also using pipes for I/O for remote command prompt.

Psexec is also getting the same issue.To reproduce,open remote command prompt from psexec and try executing non-ascii commands .

Issue: Say if you have a folder named "äü"(estonian characters), from psexec remote cmd , if you type "cd äü",

output says "The system cannot find the path specified."

Requirement : I need to send my commands to cmd.exe through pipes and get the output.But when using change directory commands ,if the directory name is non -ascii , cmd.exe doesn't recognize it.

Continue reading...
 
Back
Top