CONTENTS
1. Overview 2
2. MS-DOS Commands. 2 2.1. Internal commands 2 2.2. External Commands 2
3. The Command Prompt 3
4. Typing a Command 3
5. Viewing the Contents of a Directory 3 5.1 To view the contents of a directory one screen at a time 4 5.2 To view the contents of a directory in wide format 5
6. Changing Drives 5
7. Changing Directories 6 7.1 Changing directories 6 7.2 Changing Back to the Root Directory 7
8. Creating a Directory 7
9. Deleting a Directory 8
10. Copying Files 9 10.1 Copying a Single File 9 10.2 Copying a Group of Files 9
11. Renaming Files 10
12. Deleting Files 11 12.1 Deleting a Group of Files 11 12.2 To delete a directory 11
13. Check the Date and Time 11
14. Recall a DOS Command 11
15. Create a File with DOS 11
16. To check the contents of a file 12
17. Editing Text Files 12
18. Checking the Condition of a Disk 12
19. Help 13
20. Using The ATTRIB Command 13
21. The COLOR Command 14
22. Symbols used with commands 15
23. The PATH Command 16
24. The EXIT Command 16
25. Batch Files 17 25.1 Requirements for Creating batch files 17 25.2 How to create a batch file 17 25.3 Working with arguments 18 25.4 The Rem statement 19 25.5 Prompting for user input 19 25.6 How to start Windows files and other programs from a batch file 20 25.7 Conditional branching with "If" statements 20 25.8 "If exist" statement 20 25.9 The "goto" command 22 25.10 Iterating with "For" 24
26. Other Important MS-DOS Commands 28
This tutorial gives you an opportunity to try basic MS-DOS commands.
Overview
Most Personal Computers run under the MSDOS Operating System. MSDOS being the Microsoft Disk Operating System.
The Operating System has three main constituents:- • The system files which are hidden. Perform - basic tasks e.g. reading the keyboard, displaying characters on the screen, opening and closing files etc. • The command interpreter