Part 2

25
Mr. Ahmed Hesham Nabih Elmahdy

Transcript of Part 2

Page 1: Part 2

Mr. Ahmed Hesham Nabih Elmahdy

Page 2: Part 2

� � 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

Page 3: Part 2

� Dir

Page 4: Part 2

� Dir

Page 5: Part 2

� Dir/w

Page 6: Part 2

� Dir/w

Page 7: Part 2

� Dir/on

Page 8: Part 2

� Dir/on

Page 9: Part 2

� Dir/o-n

Page 10: Part 2

� Dir/o-n

Page 11: Part 2

� 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

Page 12: Part 2

� Copy *.* e:

Page 13: Part 2

� Copy capture.png capture3.png

Page 14: Part 2

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

Page 15: Part 2

� md aa

Page 16: Part 2

� md d:\ahmed\aa\a

Page 17: Part 2

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

Page 18: Part 2

� cd\

Page 19: Part 2

� cd..

Page 20: Part 2

� cd..

Page 21: Part 2

� cd

Page 22: Part 2

� cd folder name

Page 23: Part 2

� 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

Page 24: Part 2

� Del

Page 25: Part 2

� 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