WELCOME TO MY BLOG

-== Thanks for visiting my blog......Leave your comment!...==-

Selasa, 19 Mei 2009

Bermain Comand Prompt Ver. Windows (part 1)


Bertemu lagi dengan Windows, padahal sudah lama tidak memakai sistem operasi ini (boleh dikatakan meninggalkan Windows) berhubung banyaknya pertanyaan teman-teman mengenai perintah yang ada pada comand prompt milik sistem operasi Windows maka aq coba untuk sedikit berbagi tentang hal tersebut. Langsung saja, berikut perintahnya :

"Dikhususkan untuk newbie,tulisan ini tidak ada harganya buat para master Windows".
(buka comand prompt) bisa lewat START->PROGRAMS->ACCESSORIES->COMMAND PROMPT atau bisa juga lewat START->RUN->[ketikan]CMD [enter]

1.COLOR
Perintah ini digunakan untuk mengganti warna background dan text [foreground]
Masuk ke drive C: (caranya ketik cd[space]..) ex C:\Documents and Settings\Billing>cd ..akan keluar C:\Documents and Settings>cd .. sampai C:\
Berikut adalah pilihan warna :
0 = Black 8 = Gray
1 = Blue 9 = Light Blue
2 = Green A = Light Green
3 = Aqua B = Light Aqua
4 = Red C = Light Red
5 = Purple D = Light Purple
6 = Yellow E = Light Yellow
7 = White F = Bright White

Syntax :
COLOR [background][foreground]

Contoh :
C:\>COLOR 0A [warna background hitam dan text hijau]

2. CD
Berganti atau masuk ke direktori
Syntax :
CD [/D] [drive:][path]
CD [..]

3. ATTRIB
Menampilkan data yang terhapus di flashdisk karena virus
Karena data kita (misalkan ekstensi .doc) terinfeksi virus dan terdetek atau tidak
oleh antivirus yang mengakibatkan data kita hilang (sebenarnya tidak hilang tapi di
hiden oleh virus).
Masuk ke drive dimana flashdisk kita berada, misalkan G: [drive G]

Syntax :
ATTRIB [+R | -R] [+A | -A ] [+S | -S] [+H | -H] [drive:][path][filename]
[/S [/D]]

+ Sets an attribute.
- Clears an attribute.
R Read-only file attribute.
A Archive file attribute.
S System file attribute.
H Hidden file attribute.
[drive:][path][filename]
Specifies a file or files for attrib to process.
/S Processes matching files in the current folder
and all subfolders.
/D Processes folders as well.

Syntax :
ATTRIB [ + attribute | - attribute ] [pathname] [/S [/D]]

Contohnya:
G:\>attrib -s -h -r -a *.* /s /d [tunggu sampai proses berakhir]

4. CLS
Digunakan untuk membersihkan layar
Syntax :
cls

5. CleanMgr
Digunakan untuk membersihkan Temp files, Internet files, downloaded files, recycle
bin (XP).

Syntax
CLEANMGR option

Options
/d driveletter: - Select the drive that you want Disk Cleanup to clean.
/sageset:n - Display the Disk Cleanup Settings dialog box and create
a registry key to store the settings you select.
The n value is stored in the registry and allows you to
specify different tasks for Disk Cleanup to run.
n can be any integer from 0 to 65535.
Specify the %systemroot% drive to see all the available

options.
/sagerun:n - Run task 'n' All drives in the computer will be enumerated, and the
selected profile will be run against each drive.
Contoh :
C:\>cleanmgr option [akan menampilkan dan mengeksekusi drive mana yang akan
dibersihkan]
C:\>cleanmgr /sageset:n [akan menampilkan dan eksekusi registry, temp.files dll]
C:\>CLEANMGR /sageset:64

6. DIR
Digunakan untuk menampilkan list dari file atau sub forlder.
Syntax
DIR [pathname(s)] [display_format] [file_attributes] [sorted] [time] [options]
Key
[pathname] The drive, folder, and/or files to display,
this can include wildcards:

* Match any characters
? Match any ONE character

[display_format]
/P Pause after each screen of data.
/W Wide List format, sorted horizontally.
/D Wide List format, sorted by vertical column.

Diatas adalah sedikit dari beberapa perintah-perintah yang berjalan pada command prompt pada OS Windows. Bersambung part 2 untuk seri jaringan.
 
#sidebar #Feed1 ul li { background-color:#DEDEDF; border-bottom:1px solid #000; margin:0 0 0 0px; padding:5px; text-indent:0px; }