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-07-01 20:16
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » [Discussion] Why does only the start command enter the deformed directory?? View 2,526 Replies 26
Original Poster Posted 2008-03-01 21:01 ·  中国 湖北 武汉 电信
初级用户
Credits 108
Posts 49
Joined 2008-02-26 18:54
18-year member
UID 111491
Gender Male
Status Offline
Today I saw a post on the forum about dealing with malformed directories. I tried to create a malformed directory and open it, but found that pushd and explorer commands couldn't open it, but start could. Why is that????? Please explain.

The test code is as follows:
md d:\123..\&&pushd d:\123..\

md d:\124..\&&explorer d:\124..\

md d:\125..\&&start d:\125..\
Floor 2 Posted 2008-03-01 21:26 ·  中国 陕西 西安 电信
银牌会员
★★★★
钻石会员
Credits 2,278
Posts 1,020
Joined 2007-11-19 13:34
18-year member
UID 103127
Gender Male
Status Offline
Floor 3 Posted 2008-03-01 21:27 ·  中国 湖北 武汉 电信
初级用户
Credits 108
Posts 49
Joined 2008-02-26 18:54
18-year member
UID 111491
Gender Male
Status Offline
From the above question, I also found an interesting phenomenon. Please think about what the result is when entering the following commands in the command line??

md "d:\1_13..\"&&start "d:\1_13..\"

md d:\1_14..\&&start d:\1_14..\|(md d:\1_15..\&&start d:\1_15..\)
Floor 4 Posted 2008-03-01 21:42 ·  中国 福建 厦门 电信
初级用户
Credits 61
Posts 28
Joined 2008-03-01 21:02
18-year member
UID 111818
Gender Male
Status Offline
Oh, can't delete the created file. Depressed ah, what code oh, indeed it's strange - looking ah
Floor 5 Posted 2008-03-01 21:56 ·  中国 湖北 武汉 电信
初级用户
Credits 108
Posts 49
Joined 2008-02-26 18:54
18-year member
UID 111491
Gender Male
Status Offline
The method of deletion, please refer to the post on the second floor.
Floor 6 Posted 2008-03-02 00:07 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
We see that the originally displayed folder is missing a dot.

If you put a 123 in the same directory.
Then create a 123 directory.
When you access 123., you are actually accessing the 123 folder. So when looking at the size, it can display the size of the 123 directory. If there is no 123 directory, it is 0.

The system recognizes 123. as the attributes of 123... So you can't see the actual size, and the same reason you can't access it by double-clicking is this. After you create 123, it is equivalent to accessing the 123 folder.

You can also delete 123., and there is no error prompt, because it will delete the 123 directory.

PS:
I don't know if you can guess after reading the above?

Accessing a directory with a dot is not necessarily starting with start...

After knowing the above, it is easy to understand...
It should be original hehe. At least I didn't copy it from other places.

md 123..\
Accessing this directory is accessing that malformed directory with a dot, and the size and other things are all okay~
Floor 7 Posted 2008-03-02 00:10 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
Supplement.
Look at the property directory and there should be a 123 directory.
Look at the property of 123...\ which is that of 123..\.

When deleting, all are to delete the 123 directory.
Floor 8 Posted 2008-03-02 12:13 ·  中国 湖北 武汉 电信
初级用户
Credits 108
Posts 49
Joined 2008-02-26 18:54
18-year member
UID 111491
Gender Male
Status Offline
It seems a bit reasonable, and your method is a good one, but it still can't view the files in the malformed directory.

The test commands are as follows:

First, create two folders:

md d:\123..\&&md d:\123

echo %cmdcmdline%>d:\123..\11.txt&start d:\123..\

Opening the malformed directory with it shows no files.

The following commands can be used to open the text file in it:

start d:\123..\11.txt

type d:\123..\11.txt

[ Last edited by learner0 on 2008-3-2 at 12:36 PM ]
Floor 9 Posted 2008-03-02 13:28 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
...This is a problem with the forum system oh.

When posting to another thread, it was clearly enlarged, and it's 123...\
3 dots...

You create an md 123...\

Do you see 11.txt when you double-click in the windows interface? And it can be run.


To see the directory of 123.., you need to create a directory with one more dot. You see that 123.. actually looks at the 123 directory, of course, there are no files.
Floor 10 Posted 2008-03-02 13:39 ·  中国 湖北 武汉 电信
初级用户
Credits 108
Posts 49
Joined 2008-02-26 18:54
18-year member
UID 111491
Gender Male
Status Offline
Well, I understand already..
Floor 11 Posted 2008-04-15 00:30 ·  中国 陕西 西安 电信
初级用户
Credits 24
Posts 11
Joined 2008-04-08 21:34
18-year member
UID 115295
Gender Male
Status Offline
Uh, I understand.
Floor 12 Posted 2008-04-15 00:30 ·  中国 陕西 西安 电信
初级用户
Credits 24
Posts 11
Joined 2008-04-08 21:34
18-year member
UID 115295
Gender Male
Status Offline
It seems a bit reasonable, and yours is a good method, but it still can't view the files in the malformed directory
Floor 13 Posted 2008-04-15 00:32 ·  中国 广东 珠海 电信
初级用户
★★
Credits 97
Posts 51
Joined 2008-03-19 15:26
18-year member
UID 113404
Gender Male
Status Offline
Heh
Floor 14 Posted 2008-04-15 00:43 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
Originally posted by halby at 2008-4-15 00:30:
Seems a bit reasonable, yours is a good method, but still cannot view files in malformed directories


Too lazy to post relevant links, I didn't save... Can see files in n-level directories...
Well, not just see, but also access.
Floor 15 Posted 2008-04-15 18:18 ·  中国 江苏 南京 联通
新手上路
Credits 15
Posts 8
Joined 2008-01-21 15:37
18-year member
UID 109175
Gender Male
Status Offline
It seems like a high - level discussion, but I don't quite understand it yet.
Forum Jump: