|
king603
初级用户
 
积分 22
发帖 10
注册 2005-11-15
状态 离线
|
『楼 主』:
纯DOS下如何计算并键入汉字的内码以进入中文文件夹
使用 LLM 解释/回答一下
请问,在纯DOS环境下,如何打开中文文件名的文件夹?(最好不用借助软件或建立批处理文件)
在纯DOS下,中文是不能显示的(显示得像乱码一样),我以前问过老师如何在纯DOS下进入“D:\操作系统”目录,他竟然将“操作系统”四个字 用笔算了出来了!结果是八组三位数(178、217、215、247、207、181、205、179),每两组数为一个字,在纯DOS下把“乱码”形式的“操作系统”四字打了出来(方法是按住“Alt”键再按小键盘的数字键再松开“Alt”键,一次为半个字,打了八次就打完了这四个字!)
我想问谁知道这八组数是怎样算出来的。
—————————————— willsort 版务记录 ——————————————
修改原标题:DOS问题请教。
原主题作者在通知发出三日后仍未申诉或修改,因此由版主修改并进行积分处罚
处罚包括:扣除因发表该主题而奖励的3点积分,扣除标题违规惩罚性1点积分
—————————————— willsort 版务记录 ——————————————
Last edited by willsort on 2005-11-30 at 13:27 ]
May I ask, in a pure DOS environment, how to open a folder with a Chinese file name? (Preferably without relying on software or creating batch files)
In pure DOS, Chinese characters cannot be displayed (they appear as garbled code). I once asked my teacher how to enter the "D:\Operating System" directory in pure DOS, and he actually calculated the four characters "Operating System" with a pen! The result was eight groups of three-digit numbers (178, 217, 215, 247, 207, 181, 205, 179). Each two groups of numbers were one character. In pure DOS, the garbled form of the four characters "Operating System" was typed out (the method was to hold down the "Alt" key, then press the number keys on the numeric keypad, then release the "Alt" key. One time was half a character, and it was typed eight times to finish these four characters!)
I want to ask who knows how these eight groups of numbers were calculated.
—————————————— willsort Moderation Record ——————————————
Modified original title: DOS Question for Consultation.
The original topic author did not appeal or modify within three days after the notice was issued, so the moderator modified it and imposed a point penalty.
Penalties include: deducting 3 points of points awarded for posting this topic, deducting 1 point of penalty points for title violation
—————————————— willsort Moderation Record ——————————————
Last edited by willsort on 2005-11-30 at 13:27 ]
|
|
2005-11-15 14:39 |
|
|
dato
高级用户
   
积分 916
发帖 377
注册 2004-3-8
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
真的哦,不知道用的是什么编码,最好算法简单点,真的很不错。
可惜上屏的仍然是乱码,只能在中文系统下显示
Really, I don't know what encoding is used. It's best to have a simple algorithm. It's really great.
Unfortunately, the displayed text is still garbled. It can only be displayed under the Chinese system
|

http://dato.ys168.com
google search bot
http://dato.minidns.net/ |
|
2005-11-15 16:15 |
|
|
willsort
元老会员
         Batchinger
积分 4432
发帖 1512
注册 2002-10-18
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
Re king603:
DOS下的中文系统一般使用 GB2312 字符集国标编码,使用 GBK 或者 CJK 等大字符集的汉字系统的极少。而在 GB 码中,汉字分为一级汉字和二级汉字,一级按拼音顺序排列,二级按照笔画和笔画数排列。虽然有一定规律,但是实际计算时,必须对编码表有较强的记忆,一般不建议采用。
而在 DOS 下不使用汉字系统进入中文名目录(或者说打开开中文文件名的文件夹)早已有了许多方案,提供给你一个链接
老病新药:非中文环境下进入中文目录
http://www.cn-dos.net/forum/viewthread.php?tid=16819
当然,现有的方案都还无法完全做到,从许多中文名中辨认出某个具体中文名并进入,比如随机给出一个环境,包含许多同等长度的中文名目录,但不告知是哪些中文名,而只要求进入一个名为“目标目录”的目录,这是很难实现的。
Last edited by willsort on 2005-11-30 at 13:29 ]
Re king603:
In general, Chinese systems under DOS use the GB2312 character set national standard encoding. There are very few Chinese character systems that use larger character sets such as GBK or CJK. In GB code, Chinese characters are divided into first-level Chinese characters and second-level Chinese characters. The first-level ones are arranged in pinyin order, and the second-level ones are arranged according to strokes and the number of strokes. Although there is a certain pattern, strong memory of the encoding table is necessary for actual calculation, and it is generally not recommended.
And there have been many solutions for entering Chinese-named directories (or opening folders with Chinese file names) without using a Chinese system under DOS. Here is a link for you:
Old illness new medicine: Entering Chinese directories in non-Chinese environments
http://www.cn-dos.net/forum/viewthread.php?tid=16819
Of course, the existing solutions still cannot be completely achieved. For example, in a random environment containing many Chinese-named directories of the same length, but not telling which Chinese names they are, and only requiring entering a directory named "Target Directory", it is very difficult to achieve.
Last edited by willsort on 2005-11-30 at 13:29 ]
|

※ Batchinger 致 Bat Fans:请访问 批处理编程的异类 ,欢迎交流与共享批处理编程心得! |
|
2005-11-15 16:43 |
|
|
JonePeng
金牌会员
      D◎$ Fαп
积分 4562
发帖 1883
注册 2004-1-19 来自 广东广州
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
Originally posted by king603 at 2005-11-15 14:39:
我想问谁知道这八组数是怎样算出来的。
可以通过查询ASCII字符表来取得那些“乱码”的字符值。DN(DOS Navigator)和QB/QBasic的帮助文件都有ASCII表。至于怎么把中文字符的每个ASCII码值算出来,可以编一个小程序将ASCII字符转换为数值。
如果不借助任何工具的话,那只能靠死记硬背那些字符的ASCII码值咯 -_-
Originally posted by king603 at 2005-11-15 14:39:
I want to ask who knows how these eight groups of numbers are calculated.
You can obtain the character values of those "garbled codes" by querying the ASCII character table. Both DN (DOS Navigator) and the help files of QB/QBasic have ASCII tables. As for how to calculate the ASCII code values of each Chinese character, you can compile a small program to convert ASCII characters to numerical values.
If you don't rely on any tools, then you can only rely on memorizing the ASCII code values of those characters by rote -_-
|

----====≡≡≡≡ 我的至爱,永远是MSDOS!≡≡≡≡====----
|
|
2005-11-15 19:54 |
|
|
dato
高级用户
   
积分 916
发帖 377
注册 2004-3-8
状态 离线
|
|
2005-11-15 20:25 |
|
|
king603
初级用户
 
积分 22
发帖 10
注册 2005-11-15
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
对呀,最好能举几个例,让我们大家可以学习学习!
Yeah, it would be best to give a few examples so that we all can learn from them!
|
|
2005-11-16 01:36 |
|
|
JonePeng
金牌会员
      D◎$ Fαп
积分 4562
发帖 1883
注册 2004-1-19 来自 广东广州
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
以QB为例:
a$ = "系"
PRINT ASC(LEFT$(a$, 1)); ASC(RIGHT$(a$, 1))
Take QB as an example:
a$ = "系"
PRINT ASC(LEFT$(a$, 1)); ASC(RIGHT$(a$, 1))
|

----====≡≡≡≡ 我的至爱,永远是MSDOS!≡≡≡≡====----
|
|
2005-11-16 21:42 |
|
|
king603
初级用户
 
积分 22
发帖 10
注册 2005-11-15
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
如图:
这八组十进制数是不是有公式可以算出来的?
As shown in the figure:
Is there a formula that can be used to calculate these eight groups of decimal numbers?
|
|
2005-11-16 23:13 |
|
|
JonePeng
金牌会员
      D◎$ Fαп
积分 4562
发帖 1883
注册 2004-1-19 来自 广东广州
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
每个字符是对应一个ASCII代码的,所以公式就是将ASCII字符转为代码。
Each character corresponds to an ASCII code, so the formula is to convert the ASCII character to the code.
|

----====≡≡≡≡ 我的至爱,永远是MSDOS!≡≡≡≡====----
|
|
2005-11-17 19:17 |
|
|
king603
初级用户
 
积分 22
发帖 10
注册 2005-11-15
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
怎样转为代码?(步骤如何?)
请赐教...
谢!
How to convert to code? What are the steps?
Please teach...
Thanks!
|
|
2005-11-17 19:34 |
|
|
king603
初级用户
 
积分 22
发帖 10
注册 2005-11-15
状态 离线
|
|
2005-11-22 13:58 |
|
|
JonePeng
金牌会员
      D◎$ Fαп
积分 4562
发帖 1883
注册 2004-1-19 来自 广东广州
状态 离线
|
|
2005-11-22 19:53 |
|
|
king603
初级用户
 
积分 22
发帖 10
注册 2005-11-15
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
好像有点关系哦!不过还是不太懂~~~~~~(我太笨~~?)
如:“操”=“178 217”中,若结果答案是“178 217”,那么,已知条件是不是除了“操”字外还有其它讯息作“已知条件”的?那些所谓隐含的“已知条件”又是什么呢?(我好像问得太深奥了~~~),还是,这个“178 217”这个结果答案只能用电脑算而根本不可能以人手算了来的?
It seems a bit related! But still not very understanding~~~~~~ (I'm too stupid~~?)
For example: In "操" = "178 217", if the result answer is "178 217", then, is there any other information as "known conditions" besides the character "操"? What are those so-called implicit "known conditions"? (I seem to have asked too abstrusely~~~) Or, is this result answer of "178 217" only computable by a computer and simply impossible to be calculated manually?
|
|
2005-11-22 21:09 |
|
|
plz45
初级用户
 
积分 24
发帖 8
注册 2005-11-23
状态 离线
|
|
2005-11-23 14:19 |
|
|
plz45
初级用户
 
积分 24
发帖 8
注册 2005-11-23
状态 离线
|
|
2005-11-23 14:24 |
|