Thursday, November 18, 2010

What Shirt Goes With A Black Vest

Basic Commands Command Prompt Tricks



Basic Commands Command Prompt Command prompt



,

tips aja Jump

you open a command prompt you ...


Select Start> Run ...> on the Run ... type cmd window.
Figure 1: Run dialog box




Then press [Enter].


So now we will know some basic commands CMD







ORDERS ORDERS IN COMMAND PROMPT



Date

Order Date function to display date or to set the date.





Vol [drive]

Serves to display the label of a drive and serial numbernya.





Time [/ T]
Time without parameter / T will display the current time and sets with the new. Time with the parameter / T will display the time. Title [string] Functions to change the name on the window title with the new.
Ver Serves to display the version of Windows that is used.
CLS
Serves to clean up screen. . Attr: the parameters for the color. Attr consists of 2 hexadecimal value, the first value to determine
Color [attr] Function to change the color of the background and foreground in the command prompt
background color and the second to determine the color of the foreground. Sign in color as follows: 0 = Black 1 = Blue 2 = Green 3 = Aqua
4 = Red 5 = purple 6 = yellow remote1
7 = White 8 = Gray 9 = Light Blue A = Light Green B = Light Aqua C = Light Red D = Light Purple E = Light Yellow F = Bright White
Example: remote2






Combined: remote3


ORDER-ORDER TO FILE MANAGEMENT

Below the commands for file management, such as to create folders, folder or file copy, rename, and so forth.

Md

Works to create examples directory

Md \\
computer will create a folder in the root folder named computer.
Md \\ computer \\ blog will
create a folder inside a folder named computer and the computer will be created a folder called blog




Cd

Serves to move from one directory to another directory.
Example f: / cd komputerblog


above command will move from drive f to folder komputerblog
What if want to switch drives? at the command prompt type the drive that
want addressed.

dir [drive:] [path] [filename] [/ A [[:] attributes]] [/ B] [/ C] [/ D] [/ L] [/ O [[:] sortorder]]

[/ P] [/ Q] [/ S] [/ T [[:] timefield]] [/ W] [/ X] [/ 4]

Serves to display files and subdirectories contained in the directory.
dir command has several attributes, their description as follows:
/ A: function to display the files that have the attribute directory, hidden files, file system, read only files and archiving files. In short with
add this attribute then all files in the directory will be displayed.




/ B: only displays the file name only.




/ D: display files horizontally




/ L: displays the file name in lowercase




/ N: display files with the name of the long format, without / N
folder name "Program files" to "progra ~ 1".



/ o [attr]: displays the files in the order.
-N: Sort files by name (alphabetic)
-E: Sort files based on extension (alphabetic)
-G: Sort files according to the group
-S: Sort files based on file size (starting from the smallest)
-D: Serial file appropriate time (starting from the longest)



/ P: pause when the layer command prompt is full.
/ Q: Displays the name of the owner of the file.


/ S: Displays the folder and its subdirectori and files contained in it.
/ W: Displays a horizontal file



Copy [source] [destination]

Function to copy a file from one location to another location.
Example:
Copy c: / f laporan.doc:
This command will copy a file laporan.doc located on drive c to drive f.
Copy c: / *. doc f:
This command will copy all the *. doc file into drive berextensi f.


Del [file]

Function to delete the file.
Example:
Del c: / buku.txt
This command will delete the files in drive c. buku.txt
Del c: / *. txt
Order This will delete all *. txt files berextensi in drive c.


Erase [file] Same as

del command, function to delete the file.
Example:
erase c: / buku.txt
This command will delete the files in drive c. buku.txt
erase c: / *. txt
This command will delete all *. txt files berextensi in drive c.


Rd [folder]

This command serves to remove a directory.
Sample Rd
games
This command will delete the folder named games.


Rddir [folder]

Similar rd command, namely to delete the directory.
Example
Rddir game_lama
This command will delete the folder named game_lama



Ren [filename] [namabaru]

Functions to change the name of a file.
Example:
Ren kinta.doc kuliah.doc
This command will rename kinta.doc with kuliah.doc



Rename [filename] [namabaru]

Just like ren, serves to change the name of a file.
Example: Rename
kinta.doc kuliah.doc
This command will rename kinta.doc with kuliah.doc
berfomat Functions to display text files (*. txt)

or other files that are supported by dos.

Example: Type tentangku.txt TREE [drive:] [path] [/ F] [/ A]
image / F: By adding this option, then the files that are in
folder will be displayed. / A: Using ASCII format in displaying characters. Example: Type
f:
This command displays the directory tree that is on drive f.
Tree f: / f image This command displays the folders and files located on drive f.


image
Edit Text editor for dos.


image Supplement: image attrib external command. To view / change file attributes
internal COPY command. To copy files

DEL internal command. To delete a file

internal command DIR. To see a list of files / folders in the folder / directory MD certain internal command. To create a directory / folder internal command RD. To delete a folder (empty folder)
REN internal command. To rename a file / folder
    TYPE internal command. To view the content of external commands fileEDIT. To edit a text file (interactive)

  • external command FDISK. To view / change / create hard disk partitions image FORMAT external command. To format a floppy / hard disk
  • MORE To prevent the appearance of continuous rolling
  • External SYS what yes internal? What is clear to make a floppy / hard drive to be bootable DEBUG external command. To view / modify the contents of a file in hexadecimal format
REG external command. To view / change / delete key / value registry
taskkill external command. To stop / kill a process that is underway tasklist External command. To see a list of the ongoing process
ORDERS-ORDER BATCH


SEE LIST OF FILE: "DIR"
  • command "DIR" function to view the list of files / folders that are in directories or folders. Actually the command DIR command has many parameters that we can use to limit the list of files / folders that we want. Among others, these parameters we can use to specify files, folders or files and folders we wish to see in the directory / folders, and then determine whether we will display the files that are hidden or not, then sort by name, date, size, and forth. For a list of parameters and how to use it, type "DIR /?" And press Enter.
View a list of files / folders in the directory / folders 1
DIR (without parameters)
View a list of files only 2 DIR / ad
  • View a list of folders just
3 DIR / ad
  • View a list of hidden files
DIR / a-dh 4
    View a list of hidden folders
DIR / ADH 5
View a list of files / folders are hidden
  • DIR / ah

  • KNOW / MODIFY FILE ATTRIBUTES: "attrib"

For a list of parameters to the command "attrib", type "attrib /?".



Viewing attributes of files / folders


general format: attrib filename
Example: attrib readme.txt
To view the attributes of multiple files / folders, use the wildcard character (*) in the filename.



Change attributes of files / folders


daftaratribut attrib filename



List of valid attributes: H, R, S

Use the '-' in front of the code attribute to disable a specific attribute, use the '+' to enable a particular attribute. 6 Example usage: Change the README.TXT file attributes to be hidden attrib + h README.TXT 7 8 Enabling the hidden attribute as well as attributes of the system in the README.TXT file 9 attrib + h + s README.TXT

Disabling hidden attributes, read-only and system on all files in current directory (current directory). The combination of these attributes can be used to retrieve the files that are 'hidden', such as the impact of computer virus infection: 10 attrib-h-r-s *.* 11


0 comments:

Post a Comment