I call in command window (cmd.exe) a command that produces unicode output,
e.g. subinacl.exe from Resource Kit Tools and I want to find in the output
some string. For instance, in order to define who is the owner of
C:\temp.txt I call subinacl.exe and pipe the output to find.exe:
C:\>subinacl.exe /nostatistic /file C:\temp.txt /display=owner | find.exe
but such command returns nothing because the out of subinacl.exe delivered
in Unicode mode, while in the part
the string "/owner" is interpreted as ANSI, but not Unicode.
The initial call of cmd.exe with option "/A" doesn't help (probably because
it only affects internal commands of WinXp)
How to resolve the problem?
Is there a way to convert on-fly unicode output into ANSI ?