Minggu, 12 September 2010

Attrib di MSDOS, Fungsi untuk menyembunyikan file atau folder








Attrib

Displays, sets, or removes
the read-only, archive, system, and hidden attributes assigned to files
or directories. Used without parameters, attrib displays
attributes of all files in the current directory.

Syntax

attrib [{+r|-r}]
[{+a|-a}] [{+s|-s}] [{+h|-h}]
[[Drive:][Path] FileName] [/s[/d]]

Parameters

+r:
Sets the read-only file attribute.

-r :
Clears the read-only file attribute.

+a :
Sets the archive file attribute.

-a :
Clears the archive file attribute.

+s :
Sets the system file attribute.

-s :
Clears the system file attribute.

+h :
Sets the hidden file attribute.

-h :
Clears the hidden file attribute.

[Drive:][Path]
FileName: Specifies the location and
name of the directory, file, or set of files for which you want to
display or change attributes. You can use wildcard characters (that is, ?
and *) in the FileName parameter to display or change the
attributes for a group of files.

/s:
Applies attrib and any command-line options to matching
files in the current directory and all of its subdirectories.

/d: Applies attrib and any
command-line options to directories.

/?: Displays help at the command prompt.

Nah kalo liat teorinya aja tanpa praktek pasti rada
bingung... kalo gitu ambil kasus flash Disku aja.


A
.Men Super HiddenKan FIles.

1.Pertama
dalam flash disku ada dua folder dan dua file ber extensi txt.



2.Kita coba Super Hidden kan file
MP.txt dengan cara >>run>>cmd .Setelah kita masuk dalam DOS,
kita pindah direktori di mana file MP.txt terletak yaitu di L:\\ .
Kemudian kita ketiikan perintah >> attrib +s +h MP.txt
Perintah ini di gunakan untuk memberikan atribut +s(System
file ) dan +h(Hidden file )
sehinngga akan menyebabkan file MP.txt beratributkan system file dan
hidden file. Sehingga jika kita aktifkan folder option>> dan show
hidden files dan opsi2 yang lain, file MP.txt tidak akan terlihat sama
sekali.



3. Untuk Men Super Hiddenkan File
MP2.txt caranya sama seperti langkah nomer 2 tadi.

4. Bagai mana untuk mengembalikan file MP.txt seperti
asalnya ??? gampang... ketikkan aja perintah ini >> attrib
-s - h MP.txt
dan untuk MP2.txt sama perintahnya.

5. Bagai mana jika kita ingin mengembalikan atribut file
yang kita SH(super hidden) ?? gampang dengan mengetikkan >> attrib
-s -h
. Maka semua file pada direktori aktif akan kembali
seperti semula tanpa atribut s dan h . Dan
untuk mengeset semua file (kecuali folder ) yang berada pada di rektori
aktif gunakan perintah >> attrib +s +h ..
gampang kan!!


0 komentar:

www.ayeey.com www.resepkuekeringku.com www.desainrumahnya.com www.yayasanbabysitterku.com www.luvne.com www.cicicookies.com www.tipscantiknya.com www.mbepp.com www.kumpulanrumusnya.com www.trikcantik.net

Posting Komentar