|
learner0
初级用户
 
积分 108
发帖 49
注册 2008-2-26
状态 离线
|
『楼 主』:
[讨论]为何只有start命令能进入畸形目录??
使用 LLM 解释/回答一下
今天看到论坛上有关处理畸形目录的帖子,我试着新建一个畸形目录并打开它,却发现用pushd和explorer命令不能打开它,但是可用start打开.
这是为啥??????请大家解释一下.
测试代码如下:
md d:\123..\&&pushd d:\123..\
md d:\124..\&&explorer d:\124..\
md d:\125..\&&start d:\125..\
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..\
|
|
2008-3-1 21:01 |
|
|
plp626
银牌会员
     钻石会员
积分 2278
发帖 1020
注册 2007-11-19
状态 离线
|
|
2008-3-1 21:26 |
|
|
learner0
初级用户
 
积分 108
发帖 49
注册 2008-2-26
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
由以上问题,我还发现一个有趣现象,请大家想一想在命令行下敲入如下命令的结果是什么??
md "d:\1_13..\"&&start "d:\1_13..\"
md d:\1_14..\&&start d:\1_14..\|(md d:\1_15..\&&start d:\1_15..\)
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..\)
|
|
2008-3-1 21:27 |
|
|
wdmzjhk
初级用户
 
积分 61
发帖 28
注册 2008-3-1
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
哎呀,删不掉创建的文件了。郁闷啊,什么代码哦,果然是奇形怪状的啊
Oh, can't delete the created file. Depressed ah, what code oh, indeed it's strange - looking ah
|
|
2008-3-1 21:42 |
|
|
learner0
初级用户
 
积分 108
发帖 49
注册 2008-2-26
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
删除方法,请参考二楼的帖子..
The method of deletion, please refer to the post on the second floor.
|
|
2008-3-1 21:56 |
|
|
slore
铂金会员
      
积分 5212
发帖 2478
注册 2007-2-8
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
我们看到显示的原本文件夹少个点。
如果你在同目录放一个123.
再建一个123目录。
你访问123.的时候就是实质访问123文件夹。所以看大小的话可以显示123目录的,如果没有123目录是0。
系统认123.是123的属性。。。所以你看不到实际的大小,同样你双击访问不了也是这个原因,你建立了123后就相当于访问123文件夹。
123.你也可以点删除了,不提示错误,因为会删除123目录。
PS:
不知道看完上面你能猜到麽?
访问带点目录不是非要start……的哦。
知道上面的了就很容易理解……
应该是原创嘿嘿。起码我不是在别的地方转的。
md 123..\
你访问这个目录就是访问那个畸形带.的目录,大小什么的也都可以滴~
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~
|
|
2008-3-2 00:07 |
|
|
slore
铂金会员
      
积分 5212
发帖 2478
注册 2007-2-8
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
补充下
看属性目录下要有123目录,
看123...\的属性是123..\的。
删除的话,都是删除123目录。
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.
|
|
2008-3-2 00:10 |
|
|
learner0
初级用户
 
积分 108
发帖 49
注册 2008-2-26
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
似乎有点道理,你那是一个不错的方法,但是仍然不能查看畸形目录中的文件.
测试命令如下:
首先建立两个文件夹:
md d:\123..\&&md d:\123
echo %cmdcmdline%>d:\123..\11.txt&start d:\123..\
用它打开畦形目录发现无文件.
可用此命令打开其中的文本文件:
start d:\123..\11.txt
type d:\123..\11.txt
Last edited by learner0 on 2008-3-2 at 12:36 PM ]
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 ]
|
|
2008-3-2 12:13 |
|
|
slore
铂金会员
      
积分 5212
发帖 2478
注册 2007-2-8
状态 离线
|
『第 9 楼』:
使用 LLM 解释/回答一下
。。。这个是论坛系统的问题哦。
给另一个帖子发的时候明明放大了,而且是123...\
3个点……
你建立一个md 123...\
你在windows界面双击看看能看到11.txt不?而且可以运行。
你要看123..的目录就要建立一个多一个点的目录,你看123..其实看的是123目录当然没有文件了。
...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.
|
|
2008-3-2 13:28 |
|
|
learner0
初级用户
 
积分 108
发帖 49
注册 2008-2-26
状态 离线
|
|
2008-3-2 13:39 |
|
|
halby
初级用户
 
积分 24
发帖 11
注册 2008-4-8
状态 离线
|
|
2008-4-15 00:30 |
|
|
halby
初级用户
 
积分 24
发帖 11
注册 2008-4-8
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
似乎有点道理,你那是一个不错的方法,但是仍然不能查看畸形目录中的文件
It seems a bit reasonable, and yours is a good method, but it still can't view the files in the malformed directory
|
|
2008-4-15 00:30 |
|
|
Shinaterry
初级用户
 
积分 97
发帖 51
注册 2008-3-19
状态 离线
|
|
2008-4-15 00:32 |
|
|
slore
铂金会员
      
积分 5212
发帖 2478
注册 2007-2-8
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
Originally posted by halby at 2008-4-15 00:30:
似乎有点道理,你那是一个不错的方法,但是仍然不能查看畸形目录中的文件
懒得贴相关连接,我没有保存……可以看到n层目录下的文件……
恩,不只是看到,还可以访问。
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.
|
|
2008-4-15 00:43 |
|
|
kyo0407
新手上路

积分 15
发帖 8
注册 2008-1-21
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
貌似高手论剑一样,还不太懂
It seems like a high - level discussion, but I don't quite understand it yet.
|
|
2008-4-15 18:18 |
|