Top Banner
Basic MS-DOS
22
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: MS Dos command

Basic MS-DOS

Page 2: MS Dos command

History

• MS-DOS 1.0 was released in August 1981, and was

updated until April 1994 when it was replaced by

Windows 95

• All versions of windows still contain some type of

DOS, in windows 95 and 98 you can go to run and

type command to get to DOS prompt, in NT, 2000,

and XP you can type CMD and get DOS.

Page 3: MS Dos command

Basic Structure

• Most DOS commands use the same structure

• Command Source Destination /Switch

• The switch will give options to the command

• Example COPY A:\file.txt c:\ /v

• /v will verify if the file copied correctly

Page 4: MS Dos command

MS-DOS Prompt

• The prompt in MS-DOS displays your current

directory

• C:\dos\commands> means you are in that

directory, and any command you use will

apply to the current directory unless you

specify a different one.

Page 5: MS Dos command

DOS Naming

• The file name cannot be longer then 8

characters, and extensions cannot be longer

then 3 characters.

• Characters like * + = | \ [ ] : ; “ < > , ? / cannot

be used in DOS names.

Page 6: MS Dos command

Basic Commands CD

• CD- Change directory

• You use this command when you want to

change the directory.

• Example: CD C:\DOS will bring you to the

dos folder

Page 7: MS Dos command

Basic Commands CD..

• CD.. - brings you to the previous directory.

• Example: if you are in C:\DOS\FOLDER

CD.. Will bring you to C:\DOS

Page 8: MS Dos command

Basic Commands COPY

• COPY will copy the file from one location to

another

• Example COPY A:\file.txt c:\ will copy the file

from a:\ to c:\

Page 9: MS Dos command

Basic Command XCOPY

• XCOPY can move files, directories, and whole

drives from one location to another, It is more

powerful then the copy command, and has a

lot of switches.

Page 10: MS Dos command

Basic Commands DIR

• DIR will display the contents of the folder

Page 11: MS Dos command

Basic Command DEL

• DEL will delete a file or an empty directory

from the drive

Page 12: MS Dos command

Basic Command EDIT

• EDIT will open a text file

Page 13: MS Dos command

Basic Commands MOVE

• MOVE will move the file or directory from

one location to another

• Example: MOVE a:\file.txt c:\file.txt will

move the file to the c:\ drive

Page 14: MS Dos command

Basic Commands REN

• REN will rename the file

• Example : REN file.txt myfile.txt will rename

the file.txt to myfile.txt

Page 15: MS Dos command

Basic Commands MD

• MD is used to make a directory (folder) in

MS-DOS.

• Example: MD myfolder will make a folder

called myfolder in current directory

Page 16: MS Dos command

Basic Commands DELTREE

• DELTREE command will delete the folder and

all of its contents, including other folders.

• Example: DELTREE C:\myfolder will delete

the folder and all the contents.

Page 17: MS Dos command

Basic Command TREE

• TREE shows you all of the folders and files in

current directory like explorer in windows.

Page 18: MS Dos command

Basic Commands CLS

• CLS Will clear the contents of the screen

Page 19: MS Dos command

Attributes

• Attributes are the properties of a file such as

hidden, read-only, archive or system file.

• In MS-DOS you can view/change attributes

with the attrib command.

• Example: attrib +r file.txt will make the file

read-only.

Page 20: MS Dos command

The Help Switch /?

• You can use the help switch with any

command. It will give you the command

structure, and the availible switches.

Page 21: MS Dos command

Difference between MS-DOS and

WINDOWS

Page 22: MS Dos command

THANK YOU