Sesi Tanya & Jawab Hari ini hadir untuk memberi kami SuperUser - subdivisi Stack Exchange, pengelompokan situs web Q & A berbasis komunitas.
Screenshot jendela pesan milik Ben N (SuperUser).
Pertanyaan
Pembaca SuperUser EdwardBlack ingin tahu mengapa tidak mungkin menamai folder ._. pada sistem Windows 7-nya:
I just noticed that it is not possible to name a folder
._.
pada sistem Windows 7 saya. Ini akan diganti namanya menjadi
._
sebagai gantinya. Kadang-kadang menghilang begitu saja setelah menamainya, tetapi kemudian muncul kembali setelah menyegarkan tampilan. Windows tampaknya memiliki masalah dengan titik-titik di akhir nama file. Kenapa ini?
Mengapa tidak mungkin menamai folder ._. di Windows 7?
Jawabannya
Kontributor SuperUser Ben N memiliki jawabannya untuk kami:
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 extensions (i.e. file names that end with a period). Folders can have extensions 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 ocontainer._. 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.
Memiliki sesuatu untuk ditambahkan ke penjelasan? Bicaralah di komentar. Ingin membaca lebih banyak jawaban dari pengguna Stack Exchange yang paham teknologi lainnya? Lihat diskusi lengkap di sini.