Jumat, 25 November 2011

Changing file attributes with "attrib" Mengubah atribut file dengan "ATTRIB"

In addition to their actual content, files also have a set of properties that characterize them (sometimes called metadata .) One set of these properties are the four attributes read-only, hidden, system, and archive . Selain konten yang sebenarnya mereka, file juga memiliki seperangkat sifat yang mencirikan mereka (kadang-kadang disebut metadata .) Satu set properti ini adalah empat atribut read-only, tersembunyi, sistem, dan arsip. The archive attribute is primarily used in backup procedures but the other three can be encountered in various contexts. Atribut arsip terutama digunakan dalam prosedur cadangan tapi tiga lainnya dapat ditemui dalam berbagai konteks. These attributes can be turned on or off with the command "attrib" and its switches. Atribut ini dapat diaktifkan atau dinonaktifkan dengan perintah "ATTRIB" dan switch nya. The great utility of this command is that it can act on subfolders with its switch "/s" and can use the wildcard "*". Utilitas yang besar dari perintah ini adalah bahwa ia dapat bertindak pada subfolder dengan switch "/ s" dan dapat menggunakan wildcard "*". For example, to clear the read-only , system, and hidden attributes from a file use attrib -r -s -h somefile This operation is not uncommon when system files have to be edited. Misalnya, untuk menghapus read-only, sistem, dan atribut tersembunyi dari menggunakan file attrib -r -s -h somefile Operasi ini tidak jarang terjadi bila sistem file harus diedit. To restore the attributes the command is attrib +r +s +h somefile A common situation where it is desirable to clear the read-only attribute from many files is when files are copied from a CD. Untuk mengembalikan atribut perintah ini attrib +r +s +h somefile Sebuah situasi umum di mana diinginkan untuk menghapus atribut read-only dari file banyak adalah ketika file akan disalin dari CD. By default CD files are normally marked read-only. Oleh file CD standar biasanya ditandai hanya-baca. This can interfere with editing. Hal ini dapat mengganggu dengan mengedit. To clear the read-only attribute from all files in a folder and its subfolders use attrib -r somefolder\*.* /s If you want to process all files of a certain type such as MP3, use attrib -r somefolder\*.mp3 /s Untuk menghapus atribut read-only dari semua file dalam folder dan subfolder menggunakan attrib -r somefolder\*.* /s Jika Anda ingin memproses semua file dari jenis tertentu seperti MP3, gunakan attrib -r somefolder\*.mp3 /s
How to make your favorite folder easily accessible in Windows dialog boxes Bagaimana membuat folder favorit Anda dengan mudah diakses di kotak dialog Windows

Another older command that I find handy is "subst". Perintah lain yang lebih tua yang saya temukan berguna adalah "subst". There are certain folders that I use over and over and I like to have ready access to them. Ada folder tertentu yang saya gunakan berulang dan saya ingin memiliki akses siap untuk mereka. One way to do this is to use the command “subst” to assign a drive letter to a folder. Salah satu cara untuk melakukan ini adalah dengan menggunakan perintah "subst" untuk menetapkan huruf drive ke folder. Since drives are at the top of My Computer and any folder trees in browse lists, it makes the folder very easy to get to. Karena drive berada di atas pohon My Computer dan folder apapun dalam daftar isi, itu membuat folder sangat mudah untuk sampai ke. To map the “Z:” drive to a folder "myfolder", enter subst z: myfolder Unless you are working from the parent folder of "myfolder" you will need the full path for it. Untuk peta "Z:" drive ke "myfolder" folder, masukkan subst z: myfolder Kecuali Anda bekerja dari folder induk dari "myfolder" Anda akan memerlukan path lengkap untuk itu. The assignment only lasts until the user logs off or the computer is shut down so I have a one-line batch file in my Startup folder that reinstitutes the assignment. Tugas hanya berlangsung sampai pengguna log off atau komputer dimatikan jadi saya memiliki sebuah file batch satu baris dalam folder Startup saya bahwa reinstitutes tugas.

CONTOH ; untuk menghapus read-only, sistem, dan atribut tersembunyi dari menggunakan file attrib -r -s -h somefile Operasi ini tidak jarang terjadi bila sistem file harus diedit. To restore the attributes the command is attrib +r +s +h somefile A common situation where it is desirable to clear the read-only attribute from many files is when files are copied from a CD. Untuk mengembalikan atribut perintah ini attrib +r +s +h somefile Sebuah situasi umum di mana diinginkan untuk menghapus atribut read-only dari file banyak adalah ketika file akan disalin dari CD. By default CD files are normally marked read-only. Oleh file CD standar biasanya ditandai hanya-baca. This can interfere with editing. Hal ini dapat mengganggu dengan mengedit. To clear the read-only attribute from all files in a folder and its subfolders use attrib -r somefolder\*.* /s If you want to process all files of a certain type such as MP3, use attrib -r somefolder\*.mp3 /s Untuk menghapus atribut read-only dari semua file dalam folder dan subfolder menggunakan attrib -r somefolder\*.* /s Jika Anda ingin memproses semua file dari jenis tertentu seperti MP3, gunakan attrib -r somefolder\*.mp3 /s

Tidak ada komentar:

Posting Komentar

ads