It took time for a little while, will explain the technical vocabulary, Yan Yu continued to question up: "Yi brother, you mean this can not remove the folder is a BUG? Why can delete the following in DOS you? "
... ... Xu Yi suddenly no word, and why is it so how do I know, I did not read the source code of Microsoft's operating system, he reluctantly replied: "I only know that this is a BUG. The specific reason is not clear."
"You do not know, sir." Surprised if the little girl, maybe she did not think there is Xu Yi do not know computer problems. She went on to ask: "Yes, you have not told me why should one more point and slash it."
Xu Yi do know this: "In fact, you created the folder name has always been more of a point and the backslash. Just do not see it this way."
Yan Yu naturally do not believe, Xu Yi had to prove to her. Yan Yu him to command "MKDIRA \ \" in DOS console create documents, that is, in accordance with the DOS command syntax rules, the establishment of the document, entitled "A \ \".
So for a while, Yan Yu, sent a message will be: "Yi brother, how to build the file name is 'A.', less then a point and a backslash, so strange!"
Xu Yi replied: "Oh, just that the folder is for this reason, it is actually the name of the folder and you see not the same. You are now the usual way to try to delete this folder."
Wen Yan Yan Yu, select this folder, and then press the delete key, confirm, this time, she was surprised to find that just hit the problem has emerged, that have established their own hands can not delete a folder.
Say, that file is created I do not care for it? Yan Yu thought of this, the hearts of a move, just delete that folder according to the method, which run in DOS "RMDIRA \ \" command, find the folder you just created turned immediately deleted.
This is true! Yan Yu is very happy. This troubled her for a long time that this was what the problem, depriving She is also concerned for a moment, thought it was a hacker.
Xu Yi sitting in front of the computer, while fatigue hit another position, but he also attracted interest was the little girl decided to build on the progress this trick with her clear, well growth of interest in her techniques.
Thus, Xu Yi began explaining in detail her reason to play. Although he did not read the windows operating system source code, but according to their own knowledge, he can deduce the reasons for which Qi Bafen's.
Backslash "\ \" in the windows path separator is for example "C: \ \ Windows \ \", which means that C partition in the Windows folder, "C: \ \ Windows \ \ cmd.exe" means C partition is the Windows folder in cmd.exe file.
So, if the file name in the "\ \" sign what will happen? If "A \ \" is the name of a file, this file is located in "D: \" (D drive), then its path is "D: \ A \", when we tried to access the file when Windows will incorrectly that we want to open the file is D partition A folder, so Windows can not open and will return an error because the path above does not exist.
Of course now I'm trying to create "A \" file, but Windows will give prompt: "\ \" symbol is not used as file or folder name. That Windows is already thought of that the of. But the fact is it really? Is clearly negative.
Yan Yu encountered this folder is the case, that is, Microsoft's programmers to write the operating system when using the DOS MKDIR command to create the file under the time ignored the problem, just noticed the graphical interface in the build file .
No comments:
Post a Comment