為什麼不能在windows 7中命名資料夾“..”?

有時出於好奇,或者出於做一些不同事情的實際願望,您可能會嘗試在Windows系統上為資料夾使用一些不尋常的名稱,但結果不一。有鑑於此,今天的超級使用者問答帖子回答了一位好奇讀者的問題。...

為什麼不能在windows 7中命名資料夾“..”?

有時出於好奇,或者出於做一些不同事情的實際願望,您可能會嘗試在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:

  • Use a period to separate the base file name from the extension in the name of a directory or file.

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:

007Ys3FFgy1gpdz608lq2j30hd04qjrp

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使用者那裡瞭解更多答案嗎?在這裡檢視完整的討論主題。

  • 發表於 2021-04-10 00:49
  • 閱讀 ( 39 )
  • 分類:網際網路

你可能感興趣的文章

管理和組織計算機檔案的9個關鍵提示

... 這就是為什麼我們把這些Windows檔案管理技術放在一起。當涉及到計算機檔案管理時,沒有完美的方法,但是這些技巧將幫助你從混亂中創造秩序。 ...

  • 發佈於 2021-03-11 11:51
  • 閲讀 ( 45 )

為什麼windows臨時檔案不能自動刪除?

... 為什麼會這樣? ...

  • 發佈於 2021-03-13 01:02
  • 閲讀 ( 43 )

10個最佳windows檔案資源管理器技巧和調整

...就是檔案資源管理器的快捷鍵。一旦你掌握了這些你會想為什麼你浪費時間點選。以下是一些最常見的: ...

  • 發佈於 2021-03-13 13:30
  • 閲讀 ( 61 )

7個免費的windows工具來自動執行重複的任務

...體是一件痛苦的事,但解除安裝所有軟體則更糟。這就是為什麼我依賴於批次解除安裝應用程式的方法。 ...

  • 發佈於 2021-03-14 01:07
  • 閲讀 ( 56 )

7個你永遠無法理解的windows謎團

... 讓我們來看看這些謎團。你可能想知道為什麼窗戶在某些地方很特別,或者根本沒有注意到它們。下面是你日常作業系統中一些神祕的小元素的答案。 ...

  • 發佈於 2021-03-14 02:33
  • 閲讀 ( 68 )

7個簡單的windows指令碼,為您節省時間和精力

... 是否有其他要與其他使用者共享的Windows指令碼?為什麼不加入下面評論部分的對話呢? ...

  • 發佈於 2021-03-15 21:37
  • 閲讀 ( 54 )

11個奇怪的窗戶蟲子和復活節彩蛋

...,從結果中減去2。Windows計算器給你什麼結果?明白他們為什麼不讓你在學校用計算器了嗎? ...

  • 發佈於 2021-03-25 13:30
  • 閲讀 ( 57 )

如何在Windows10中更改預設的新資料夾名

...種方法,刪除在“shell”下建立的“Folder”鍵 既然如此,為什麼不學習如何在Windows10中為各種檔案格式設定預設應用程式呢?

  • 發佈於 2021-03-31 13:45
  • 閲讀 ( 40 )

Windows10中的“上帝模式”資料夾是什麼?如何啟用它?

...辦?如果這聽起來不錯,那就看看所謂的“上帝模式” 什麼是上帝模式(god mode)? 不,上帝模式不解鎖任何額外的祕密功能在Windows或讓你做任何調整,你不能在常規的Windows介面。相反,它只是一個特殊的資料夾,你可以啟用...

  • 發佈於 2021-04-04 01:06
  • 閲讀 ( 55 )

如何將照片從iphone傳送到pc

...線到計算機。這是你用來給**充電的同一根電纜。 相關:為什麼你的iPhone要求你“信任這臺電腦”(以及你是否應該這樣做) 第一次將其連線到計算機時,您將看到一個彈出視窗,要求您信任您的計算機(如果您安裝了iTunes)...

  • 發佈於 2021-04-06 12:05
  • 閲讀 ( 43 )
uza31
uza31

0 篇文章

作家榜

  1. admin 0 文章
  2. 孫小欽 0 文章
  3. JVhby0 0 文章
  4. fvpvzrr 0 文章
  5. 0sus8kksc 0 文章
  6. zsfn1903 0 文章
  7. w91395898 0 文章
  8. SuperQueen123 0 文章

相關推薦