China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-12 01:24
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to tell in a BAT file whether the system is Simplified Chinese or Traditional Chinese View 812 Replies 2
Original Poster Posted 2010-08-13 09:26 ·  中国 江苏 苏州 电信
新手上路
Credits 6
Posts 6
Joined 2010-08-12 15:00
15-year member
UID 172251
Gender Male
Status Offline
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?
Floor 2 Posted 2010-08-13 09:58 ·  中国 北京 联通
高级用户
★★★
据说是李先生
Credits 609
Posts 400
Joined 2008-04-23 15:55
18-year member
UID 116706
Gender Male
Status Offline
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.
Floor 3 Posted 2010-08-13 11:49 ·  中国 江苏 苏州 电信
新手上路
Credits 6
Posts 6
Joined 2010-08-12 15:00
15-year member
UID 172251
Gender Male
Status Offline
Not bad. Tested successfully under XP Simplified/Traditional Chinese, server 2003/2000 Traditional Chinese, and win7 Simplified/Traditional Chinese. Many thanks!
Forum Jump: