有時出於好奇,或者出於做一些不同事情的實際願望,您可能會嘗試在Windows系統上為資料夾使用一些不尋常的名稱,但結果不一。有鑑於此,今天的超級使用者問答帖子回答了一位好奇讀者的問題。
今天的問答環節是由SuperUser提供的,SuperUser是Stack Exchange的一個分支,是一個由社群驅動的問答網站分組。
訊息視窗截圖由Ben N(超級使用者)提供。
超級使用者讀者EdwardBlack想知道為什麼不能命名資料夾。在他的Windows 7系統上:
I just noticed that it is not possible to name a folder ._. on my Windows 7 system. It gets renamed to ._ instead. Sometimes it disappears just after naming it, but then reappears after refreshing the view. Windows seems to have a problem with dots at the end of a filename. Why is this?
為什麼不能命名資料夾。\u。在Windows7中?
超級使用者貢獻者Ben N為我們提供了答案:
Windows normally requires files to have either no extension or an extension that is at least one character long. It does not like zero length extensi*** (i.e. file names that end with a period). Folders can have extensi*** too, therefore, Windows does not let their names end with a period.
Source: From the article linked to by DavidPostill:
If you try to end a file or directory name with a period, Windows just assumes that you did not want an extension and thus removes it (even if you create it with the md command in a command prompt window).
Danger Zone
If you really want a folder name to end with period, you will need to use the magic raw name override sequence of \\?\. In a command prompt window, md \\?\C:\path\to\container\._. will indeed create a folder named ._., but lots of programs will have problems with it, even Windows Explorer:
Such a directory can only be removed with the rd command followed by its \\?\ name, or renamed with its short (8.3, dir /x) name.
有什麼要補充的解釋嗎?在評論中發出聲音。想從其他精通技術的Stack Exchange使用者那裡瞭解更多答案嗎?在這裡檢視完整的討論主題。
... 這就是為什麼我們把這些Windows檔案管理技術放在一起。當涉及到計算機檔案管理時,沒有完美的方法,但是這些技巧將幫助你從混亂中創造秩序。 ...
...就是檔案資源管理器的快捷鍵。一旦你掌握了這些你會想為什麼你浪費時間點選。以下是一些最常見的: ...
...體是一件痛苦的事,但解除安裝所有軟體則更糟。這就是為什麼我依賴於批次解除安裝應用程式的方法。 ...
... 讓我們來看看這些謎團。你可能想知道為什麼窗戶在某些地方很特別,或者根本沒有注意到它們。下面是你日常作業系統中一些神祕的小元素的答案。 ...
... 是否有其他要與其他使用者共享的Windows指令碼?為什麼不加入下面評論部分的對話呢? ...
...,從結果中減去2。Windows計算器給你什麼結果?明白他們為什麼不讓你在學校用計算器了嗎? ...
...種方法,刪除在“shell”下建立的“Folder”鍵 既然如此,為什麼不學習如何在Windows10中為各種檔案格式設定預設應用程式呢?
...辦?如果這聽起來不錯,那就看看所謂的“上帝模式” 什麼是上帝模式(god mode)? 不,上帝模式不解鎖任何額外的祕密功能在Windows或讓你做任何調整,你不能在常規的Windows介面。相反,它只是一個特殊的資料夾,你可以啟用...
...線到計算機。這是你用來給**充電的同一根電纜。 相關:為什麼你的iPhone要求你“信任這臺電腦”(以及你是否應該這樣做) 第一次將其連線到計算機時,您將看到一個彈出視窗,要求您信任您的計算機(如果您安裝了iTunes)...