basic ms-dos
DESCRIPTION
Basic MS-DOS. History. MS-DOS 1.0 was released in August 1981, and was updated until April 1994 when it was replaced by Windows 95 - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Basic MS-DOS](https://reader033.vdocuments.us/reader033/viewer/2022061605/56812a71550346895d8df423/html5/thumbnails/1.jpg)
Basic MS-DOS
![Page 2: Basic MS-DOS](https://reader033.vdocuments.us/reader033/viewer/2022061605/56812a71550346895d8df423/html5/thumbnails/2.jpg)
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: Basic MS-DOS](https://reader033.vdocuments.us/reader033/viewer/2022061605/56812a71550346895d8df423/html5/thumbnails/3.jpg)
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: Basic MS-DOS](https://reader033.vdocuments.us/reader033/viewer/2022061605/56812a71550346895d8df423/html5/thumbnails/4.jpg)
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: Basic MS-DOS](https://reader033.vdocuments.us/reader033/viewer/2022061605/56812a71550346895d8df423/html5/thumbnails/5.jpg)
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: Basic MS-DOS](https://reader033.vdocuments.us/reader033/viewer/2022061605/56812a71550346895d8df423/html5/thumbnails/6.jpg)
Wildcard characters
Wildcard character will replace a single letter, or word with a wild character
* will replace any input of characters, and ? Will replace one.
Example: copy a:/*.txt c:/ will copy all text files to drive c:/
Example 2: copy a:/?????.txt c:/ will copy any 5 letter text file to c:/
![Page 7: Basic MS-DOS](https://reader033.vdocuments.us/reader033/viewer/2022061605/56812a71550346895d8df423/html5/thumbnails/7.jpg)
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 8: Basic MS-DOS](https://reader033.vdocuments.us/reader033/viewer/2022061605/56812a71550346895d8df423/html5/thumbnails/8.jpg)
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 9: Basic MS-DOS](https://reader033.vdocuments.us/reader033/viewer/2022061605/56812a71550346895d8df423/html5/thumbnails/9.jpg)
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 10: Basic MS-DOS](https://reader033.vdocuments.us/reader033/viewer/2022061605/56812a71550346895d8df423/html5/thumbnails/10.jpg)
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 11: Basic MS-DOS](https://reader033.vdocuments.us/reader033/viewer/2022061605/56812a71550346895d8df423/html5/thumbnails/11.jpg)
Basic Commands DIR
DIR will display the contents of the folder
![Page 12: Basic MS-DOS](https://reader033.vdocuments.us/reader033/viewer/2022061605/56812a71550346895d8df423/html5/thumbnails/12.jpg)
Basic Command DEL
DEL will delete a file or an empty directory from the drive
![Page 13: Basic MS-DOS](https://reader033.vdocuments.us/reader033/viewer/2022061605/56812a71550346895d8df423/html5/thumbnails/13.jpg)
Basic Command EDIT
EDIT will open a text file
![Page 14: Basic MS-DOS](https://reader033.vdocuments.us/reader033/viewer/2022061605/56812a71550346895d8df423/html5/thumbnails/14.jpg)
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 15: Basic MS-DOS](https://reader033.vdocuments.us/reader033/viewer/2022061605/56812a71550346895d8df423/html5/thumbnails/15.jpg)
Basic Commands REN
REN will rename the file
Example : REN file.txt myfile.txt will rename the file.txt to myfile.txt
![Page 16: Basic MS-DOS](https://reader033.vdocuments.us/reader033/viewer/2022061605/56812a71550346895d8df423/html5/thumbnails/16.jpg)
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 17: Basic MS-DOS](https://reader033.vdocuments.us/reader033/viewer/2022061605/56812a71550346895d8df423/html5/thumbnails/17.jpg)
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 18: Basic MS-DOS](https://reader033.vdocuments.us/reader033/viewer/2022061605/56812a71550346895d8df423/html5/thumbnails/18.jpg)
Basic Command TREE
TREE shows you all of the folders and files in current directory like explorer in windows.
![Page 19: Basic MS-DOS](https://reader033.vdocuments.us/reader033/viewer/2022061605/56812a71550346895d8df423/html5/thumbnails/19.jpg)
Basic Commands CLS
CLS Will clear the contents of the screen
![Page 20: Basic MS-DOS](https://reader033.vdocuments.us/reader033/viewer/2022061605/56812a71550346895d8df423/html5/thumbnails/20.jpg)
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 21: Basic MS-DOS](https://reader033.vdocuments.us/reader033/viewer/2022061605/56812a71550346895d8df423/html5/thumbnails/21.jpg)
The Help Switch /?
You can use the help switch with any command. It will give you the command structure, and the availible switches.