- Enable Unicode output from inside a DOS batch script ? "cmd /U" equivalent ?
- Posted by Werner Sammer on March 8th, 2007
Ok, when I start a new command prompt with the parameter flag /U then all
output is done in Unicode. That means when I enter "dir" then e.g. german Umlaute
in filenames are recognized correctly.
But what is the equivalent for the /U switch in DOS batch files ?
How can I turn on Unicode output from within batch files ?
Do I really have to prepend EVERY single command in a batch file with:
cmd /k /U "....."
e.g.
cmd /k /U "dir >myfile.txt"
to force Unicode output ?
I could imagine that there is a global command on the top of a batch file like
enableunicode
that has the same effect. I am working under WinXP. Maybe there is a speical environment
setting for this OS.
Werner
Similar Posts
- Is there a router equivalent of the catalyst's "enable engineer"? (Routers) by Reenigne
- Add Exchange "Contacts" to a Distirbution List with batch script? (MS-DOS) by rwh@rodharrison.com
- Sony restore cds don't allow me to enable "show hidden files" or add "my computer" to desktop. (Computers & Technology) by jeff
- What's the mean "check=" result from output using "show ip access-list"? (Routers) by S.C.Park
- How to display a part of an %%a variable inside a batch "for" loop ? (MS-DOS) by Thomas Heinrich

