中国DOS联盟论坛

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-09-15 13:29
47,812 topics / 349,917 posts / today 0 new / 48,268 members
DOS批处理 & 脚本技术(批处理室) » Another interesting phenomenon of CMD is discovered
Printable Version  9,957 / 27
Floor1 lxmxn Posted 2006-10-08 08:48
版主 Posts 4,938 Credits 11,386

Today, while playing with CMD, I accidentally discovered an interesting phenomenon of CMD. Maybe some friends have already noticed it.

I personally feel it is a small bug of CMD.

The process is as follows:

I first entered "cmd /d /f" in Start/Run to enter the command prompt. In order to enable the filename and directory auto-completion function. At this time, my command prompt is:

C:\Documents and Settings\Administrator>

Then press Ctrl+D casually to automatically complete a folder or file in the current directory at the current prompt position. At this time, my command prompt is:

C:\Documents and Settings\Administrator>「Start」menu

Then press the Tab key to make the cursor jump backward, and then keep pressing the BackSpace key until it can't be退. At this time, my command prompt has become:

C:\Documents and Settings\Administrato

Everyone should have discovered the problem.

Yes, the command prompt has changed. The original command prompt

C:\Documents and Settings\Administrator>

Now it has become

C:\Documents and Settings\Administrato

That is to say, after my operation just now, the command prompt lost the last two characters "r" and ">".

Then after pressing Enter, the command prompt returns to the original state.

Friends who are interested can try it by themselves. I have this strange phenomenon here. I don't understand the reason. I hope the experts can explain the reason for this phenomenon. I would like to thank you in advance, little brother.

I thought about it. It is very likely related to the "tab" function of the Tab key, but I can't be sure.

In addition, I tested in the root directory and there is no such phenomenon. I don't know if it's not fully tested or something.

Test environment: Windows XP SP2
Floor2 不得不爱 Posted 2006-10-08 09:09
超级版主 Posts 2,044 Credits 5,310 From 四川南充
I don't know what's going on

[ Last edited by qwe1234567 on 2006-10-8 at 09:15 ]
Floor3 electronixtar Posted 2006-10-08 10:33
铂金会员 Posts 2,672 Credits 7,493
It may be related to the width of Chinese characters in cmd processing + Unicode encoding issues. If the first Ctrl+D is in English, there is no such problem
Floor4 namejm Posted 2006-10-08 10:42
荣誉版主 Posts 1,737 Credits 5,226 From 成都
electronixtar's statement is correct. Please see a previous analysis article by willsort: CMD auto-complete feature has issues with Chinese file and directory names
Floor5 my3439955 Posted 2006-10-14 23:23
中级用户 Posts 99 Credits 272
This is a problem with Unicode. But although it looks uncomfortable, actually it can be used the same way, no impact.
Floor6 lxmxn Posted 2006-10-15 05:55
版主 Posts 4,938 Credits 11,386
Originally posted by my3439955 at 2006-10-14 23:23:
This is a Unicode issue.
But although it looks uncomfortable,
actually it can still be used,
no impact.


  But there are still some small troubles during the use.```

  Don't believe it, you can try more.``

  
              PS: Brother's avatar is also okay, quite cool~
Floor7 lp1129 Posted 2007-03-28 02:17
初级用户 Posts 92 Credits 186
Floor8 wfr4094 Posted 2007-06-14 17:54
新手上路 Posts 4 Credits 6
Points: 122
Posts: 60
Registered: 2007-3-27
Status: Offline 『Post 7』:

So profound and mysterious
Floor9 sfencer Posted 2007-06-16 15:23
新手上路 Posts 8 Credits 16
My system is Windows 2000, and it has become Administrator.ZLX>「开始
That is, the three characters "「开始" cannot be deleted at all
Floor10 wert123 Posted 2007-06-16 16:56
中级用户 Posts 135 Credits 301
Bamboo master lxmxn found a bug at once, which is really useful, but I don't know the reason. Anyway, running NOTEPAD at "C:\Documents and Settings\Administrato" starts Notepad.
Floor11 lxmxn Posted 2007-06-16 21:56
版主 Posts 4,938 Credits 11,386
You can check the link in floor 4 for the reason.
Floor12 solomon9813 Posted 2007-08-22 23:31
新手上路 Posts 3 Credits 7
There is no such phenomenon with mine.
Floor13 picat Posted 2007-08-23 10:14
初级用户 Posts 68 Credits 150
Oh, it turns out that cmd can also auto-complete. Oh, this place is really a cow pen~
Floor14 258692011 Posted 2008-02-19 00:46
新手上路 Posts 8 Credits 13
Floor15 87218129 Posted 2008-09-05 11:37
新手上路 Posts 2 Credits 4 From 河北邯郸
Don't understand, but it's quite interesting oh
1 2  Next
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023