just shell out:
Code:

shell "%comspec% /c type theFile.txt > theFileInANSI.txt"