Minggu, 14 Oktober 2012

Perintah DOS



Perintah DOS
1 . CLS
     Arti : Clear Screen
     Kegunaan : Membersihkan Layar Monitor
     Format : CLS
     Contoh : cls

2 . DIR
     Arti : Dirrectory
     Kegunaan : Melihat Isi Direktori
     Format : DIR [drive:][path][filename] [/A[[:]attributes]] [/B] [/C] [/D] [/L] [/N]
  [/O[[:]sortorder]] [/P] [/Q] [/R] [/S] [/T[[:]timefield]] [/W] [/X] [/4]
[drive:][path][filename]
            Specifies drive, directory, and/or files to list.

/A          Displays files with specified attributes.
attributes   D  Directories                R  Read-only files
                  H  Hidden files              A  Files ready for archiving
                  S  System files               I  Not content indexed files
                  L  Reparse Points          -  Prefix meaning not
/B          Uses bare format (no heading information or summary).
/C          Display the thousand separator in file sizes.  This is the
            default.  Use /-C to disable display of separator.
/D          Same as wide but files are list sorted by column.
/L          Uses lowercase.
/N          New long list format where filenames are on the far right.
/O          List by files in sorted order.
sortorder    N  By name (alphabetic)           S  By size (smallest first)
                    E  By extension (alphabetic)  D  By date/time (oldest first)
                   G  Group directories first    -  Prefix to reverse order
/P          Pauses after each screenful of information.
/Q          Display the owner of the file.
/R          Display alternate data streams of the file.
/S          Displays files in specified directory and all subdirectories.
/T          Controls which time field displayed or used for sorting
timefield   C  Creation
            A  Last Access
            W  Last Written
/W          Uses wide list format.
/X          This displays the short names generated for non-8dot3 file
            names.  The format is that of /N with the short name inserted
            before the long name. If no short name is present, blanks are
            displayed in its place.
/4          Displays four-digit years

     Contoh :
      Dir              : Melihat isi direktori di drive yang aktif
      Dir E            : Melihat isi direktori di drive E
      Dir P*.*      : Melihat isi direktori yang diawali huruf  “P”
      Dir *.DOC*  : Melihat Isi Direktori semua file / subdirektori yang diakhiri dengan DOC
      Dir ?a*.*       : Melihat isi file yang huruf keduanya “a”

3 . CD
     Arti :  Change Dirrectory
     Kegunaan : Menampilkan atau menulis ke suatu Direktori
     Format :
    CHDIR [/D] [drive:][path]
   CHDIR [..]
   CD [/D] [drive:][path]
   CD [..]
 
     Contoh :
     CD : Menuju Direktory yang aktif
     CD. : Menuju Direktory yang aktif
     CD.. : Menuju ke Directorry atasnya
     CD\ : Menuju ke Dirrectory utama
     CD SISWA\*KELAS XE* : Menuju ke directory “KELAS XE” yang ada di directory SISWA
4. MD
     Arti :  Make Directorry
     Kegunaan : Untuk Membuat Folder
     Format : MKDIR [drive:]path
      MD [drive:]path

   If Command Extensions are enabled MKDIR changes as foll

MKDIR creates any intermediate directories in the path,
For example, assume \a does not exist then:

    mkdir \a\b\c\d

is the same as:

    mkdir \a
    chdir \a
    mkdir b
    chdir b
    mkdir c
    chdir c
    mkdir d

which is what you would have to type if extensions were

     Contoh :  MD ‘najibullah’

5. RD
     Arti :  Remove Dirrectorry
     Kegunaan : menghapus folder
     Format : RMDIR [/S] [/Q] [drive:]path
     RD [/S] [/Q] [drive:]path

    /S      Removes all directories and files in the specified directory
            in addition to the directory itself.  Used to remove a directory
            tree.

    /Q      Quiet mode, do not ask if ok to remove a directory tree with /S
     Contoh : rd "'najibullah'"
6.  DEL
     Arti :  Delete
     Kegunaan : Menghapus 1 atau lebih file
     Format : 09/12/2012  10:11 AM    <DIR>          .
09/12/2012  10:11 AM    <DIR>          ..
08/29/2012  10:14 AM            29,184 najib.docx
08/29/2012  10:14 AM            29,184 Operasi Dasar Komputer.docx
09/12/2012  10:02 AM            32,768 Perintah DOS.docx
               3 File(s)         91,136 bytes
               2 Dir(s)  208,513,839,104 bytes free

G:\XE\Najibullah Wicaksana W>del najib.docx

G:\XE\Najibullah Wicaksana W>dir
 Volume in drive G is DATA
     Contoh :  W>del najib.docx
7 . Tree
     Arti :  Grafis
     Kegunaan : Secara grafis menampilkan struktur folder dari suatu drive

     Format : TREE [drive:][path] [/F] [/A]

   /F   Display the names of the files in each folder.
   /A   Use ASCII instead of extended characters.
     Contoh : tree /?
8. REN
    Arti :  Rename
     Kegunaan : mengganti nama sebuah file
     Format : RENAME [drive:][path]filename1 filename2.
REN [drive:][path]filename1 filename2.

Note that you cannot specify a new drive or path for your destination file.
     Contoh : W>ren perintah DOS.docx PERINTAH DOS

Tidak ada komentar:

Posting Komentar