![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-12 00:32 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS批处理 & 脚本技术(批处理室) » How to tell in a BAT file whether the system is Simplified Chinese or Traditional Chinese |
| Printable Version 811 / 2 |
| Floor1 fitenzhou | Posted 2010-08-13 09:26 |
| 新手上路 Posts 6 Credits 6 | |
|
Some of the systems at the company are Simplified Chinese and some are Traditional Chinese. I want it to automatically determine whether it's Simplified or Traditional and then run the corresponding code. Can this be done?
|
|
| Floor2 qinchun36 | Posted 2010-08-13 09:58 |
| 高级用户 Posts 400 Credits 609 | |
|
By default, use chcp to check. Simplified Chinese is 936. I've never used Traditional Chinese, so I don't know whether it's 950.
|
|
| Floor3 fitenzhou | Posted 2010-08-13 11:49 |
| 新手上路 Posts 6 Credits 6 | |
|
Not bad. Tested successfully under XP Simplified/Traditional Chinese, server 2003/2000 Traditional Chinese, and win7 Simplified/Traditional Chinese. Many thanks!
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |