Submitted by itefix on Thu, 24/07/2008 - 15:45
This may not be as straightforward as you think if we need to support international characters. A DOS command produces its output in an OEM-defined character set, while Windows supports either ANSI or a wide character set. You will observe that using DOS strings directly in windows will result with some odd characters.