![]() |
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-28 13:00 |
47,813 topics / 349,918 posts / today 0 new / 48,277 members |
| DOS批处理 & 脚本技术(批处理室) » [Discussion] Why does only the start command enter the deformed directory?? |
| Printable Version 3,087 / 26 |
| Floor1 learner0 | Posted 2008-03-01 21:01 |
| 初级用户 Posts 49 Credits 108 | |
|
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..\ |
|
| Floor2 plp626 | Posted 2008-03-01 21:26 |
| 银牌会员 Posts 1,020 Credits 2,278 | |
|
Come here to discuss:
Non-empty, dot-shaped deformed directory |
|
| Floor3 learner0 | Posted 2008-03-01 21:27 |
| 初级用户 Posts 49 Credits 108 | |
|
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..\) |
|
| Floor4 wdmzjhk | Posted 2008-03-01 21:42 |
| 初级用户 Posts 28 Credits 61 | |
|
Oh, can't delete the created file. Depressed ah, what code oh, indeed it's strange - looking ah
|
|
| Floor5 learner0 | Posted 2008-03-01 21:56 |
| 初级用户 Posts 49 Credits 108 | |
|
The method of deletion, please refer to the post on the second floor.
|
|
| Floor6 slore | Posted 2008-03-02 00:07 |
| 铂金会员 Posts 2,478 Credits 5,212 | |
|
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~ |
|
| Floor7 slore | Posted 2008-03-02 00:10 |
| 铂金会员 Posts 2,478 Credits 5,212 | |
|
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. |
|
| Floor8 learner0 | Posted 2008-03-02 12:13 |
| 初级用户 Posts 49 Credits 108 | |
|
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 ] |
|
| Floor9 slore | Posted 2008-03-02 13:28 |
| 铂金会员 Posts 2,478 Credits 5,212 | |
|
...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. |
|
| Floor10 learner0 | Posted 2008-03-02 13:39 |
| 初级用户 Posts 49 Credits 108 | |
|
Well, I understand already..
|
|
| Floor11 halby | Posted 2008-04-15 00:30 |
| 初级用户 Posts 11 Credits 24 | |
|
Uh, I understand.
|
|
| Floor12 halby | Posted 2008-04-15 00:30 |
| 初级用户 Posts 11 Credits 24 | |
|
It seems a bit reasonable, and yours is a good method, but it still can't view the files in the malformed directory
|
|
| Floor13 Shinaterry | Posted 2008-04-15 00:32 |
| 初级用户 Posts 51 Credits 97 | |
|
Heh
|
|
| Floor14 slore | Posted 2008-04-15 00:43 |
| 铂金会员 Posts 2,478 Credits 5,212 | |
Originally posted by halby at 2008-4-15 00:30: Too lazy to post relevant links, I didn't save... Can see files in n-level directories... Well, not just see, but also access. |
|
| Floor15 kyo0407 | Posted 2008-04-15 18:18 |
| 新手上路 Posts 8 Credits 15 | |
|
It seems like a high - level discussion, but I don't quite understand it yet.
|
|
| 1 2 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |