Part 2

Post on 08-Aug-2015

21 views 2 download

Tags:

transcript

Mr. Ahmed Hesham Nabih Elmahdy

� � Dir : The Dir command allows you to see the available files in the current directories . Lists all files & directories in the directory that you are currently in . � Dir/w : if information on the date & time and other information on the files are not needed , then this command can be used to list just the files & directories going horizontally , taking as little as space needed . � Dir/on : Listed the files in alphabetical order by the names of the files . � Dir/o-n : List the files in reverse alphabetical order by the name of the files .

Dir Command

� Dir

� Dir

� Dir/w

� Dir/w

� Dir/on

� Dir/on

� Dir/o-n

� Dir/o-n

� Copy command allows to copy one or more files to an alternate location . example : �  Copy *.*a:

copy all files in the current directory to the “ a ” disk drive.

�  Copy file1.txt file2.txt

copy the contents of file1.txt to file2.txt . �  Copy myfile1.txt + myfile2.txt

copy the contents in myfile2.txt & combines it with the contents in myfile1.txt .

Copy Command

� Copy *.* e:

� Copy capture.png capture3.png

MD command allows to create directories in MS-DOS . example : �  md test : creates the “test” directory in the currently directory . � md c:\test creates the “test” directory in c:\ directory .

MD Command

� md aa

� md d:\ahmed\aa\a

CD (Change Directory)is a command used to switch directories in MS – DOS . examples : �  cd/ goes to the highest level , the root of the drive . �  cd.. goes back one directory . �  cd typing cd alone will print the working directory . �  cd folder name goes to folder name directory .

CD Command

� cd\

� cd..

� cd..

� cd

� cd folder name

� Del command is used to delete files from the computer . Deleting files from MS – DOS does not send files to the recycle bin . example: � del test.tmp Delete the test.tmp in the directory that you currently are in , if the files exists . � del c:\Windows\test.tmp delete the c:\Windows\test.tmp in the windows directory , if the files exists .

DEL Command

� Del

� The color command is used to color the CMD text & background. The color command consists of 16 number & letter as shown in the following :

0,1,2,3,4,5,6,7,8,9,a,b,c,d,e,f example: �  color help Shows the color of each letter & each number. �  color F1 The color of the text & background will change to the F1 color .

Color Command