Simple DOS commands, basic DOS commands, simple file operations, Directory related commands
Simple DOS commands, basic DOS commands, simple file operations, Directory related commands
What is a File A group of organized data (records) which are assembled for one particular purpose and considered as one unit Stored in permanent storage like hard disk, diskettes, etc. |
Types of Files Files can broadly be categorized into two types: ◦ Executable Files |
What are EXE Files Exe Files: ◦ Program files that run or execute themselves ◦ Have either COM or EXE or BAT as extension |
What are Data Files Non- executable files that contain only the data that we produce Cannot execute themselves |
What is a Command A command is a set of instructions used to perform a specific work Interpreted by the OS interpreter to a machine language ◦ E.g. <md Ram>,<cd Ram>,etc. |
Windows In windows it is very easy to do any action like creating a file or copying, moving, deleting, etc….. Because the instructions are executed by clicking on icons and windows unlike Dos operating system. Now create a folder and practice all instruction mentioned before ? |
DOS Commands Types of DOS Commands ◦ Internal ◦ External Directory
|
Types of Command Internal Command ◦ Those commands which are already loaded in the Command.COM file while switching to the MS DOS ◦ E.g. CLS,VER, DEL, etc. External Command ◦ Those commands which are not loaded when loading the Program but are available in the Disk and can be invoked whenever necessary ◦ E.g. FORMAT,TREE, XCOPY, etc. |
What is a Directory A directory is a list of file which is itself a file stored in the computer’s memory so that users can reference it as it is required Also called a catalog of files |
Root Directory The Root directory is that directory that is automatically created when the disk is formatted It is the current drive that we have been working ◦ E.g. A:\, B:\ (for Floppy Disk Drive) ◦ C:\,D:\ etc. (for Hard Disk Drive) |
Current / Parent Directory Current directory is that directory in which you are currently working Parent directory is that directory which is one level up of the current directory ◦ E.g. C:\Ram\Hari> Current directory Parent directory Root directory |
Getting into MS DOS
|
Listing the Directories and Files in MS DOS For listing the Sub-directories and Files within a directory, we use the DIR command Syntax : ◦ E.g. C:\>DIR/ NCIT Displays all the directories/files within the directory NCIT |
|
Creating a Directory in MS DOS
For creating the Directory in MS DOS, we use the MD (Make Directory)command
Syntax:
◦ C:\> MD NCIT
Changing a Directory in MS DOS For changing the directory in MS DOS, we use the CD (Change Directory) command Syntax: Now it appears as: ◦ C:\NCIT> |
Switching between Directories
For switching between the directories we use the CD.. Or CD\ commands
CD.. Command switches from the current directory to the Parent directory
CD\ command switches from the current directory to the Root directory
Creating Files in MS DOS For creating the files in DOS, the command COPY CON is used Syntax: Note: File name should not exceed eight characters excluding three characters for extension ◦ E.g.College1.txt |
Reading Files in MS DOS For reading the Pre-created files in MS DOS, we use the TYPE command. It displays all the contents that are in the file. Syntax : |
Renaming Files For renaming the files in MS DOS we use the REN Command Syntax: |
Deleting Files in MS DOS For deleting files in MS DOS we use the DEL command Syntax : |
De |
leting directories in MSDOS For deleting the directories in MS DOS we use the RD command Syntax : Note : For removing the directory first the directory should be empty |
Checking the Date/Time
|
External Commands Those commands which are not loaded when loading the Program but are available in the Disk and can be invoked whenever necessary E.g. FORMAT,TREE, XCOPY, etc. |
The FORMAT Command The FORMAT command prepares a new disk for use by organizing the disk into magnetic tracks and sectors Syntax : E.g. |
The TREE Command The TREE command is used to display all directory pathnames on the specified disk Syntax : E.g. |
The EDIT Command The EDIT command in MS DOS is used to edit the files. It provides a different full screen Editor window with a few menu options. Syntax : E.g. |
The PRINT Command The PRINT Command in MS DOS is used to print the text files Syntax : E.g. |
Topics Covered :
- basic commands
- first dos commands
- +command
- command prompt
- command line
- windows
- first time dos
- how do i use dos
- comptia a 802
- tutorial (media genre)
- comptia
- using dos
- move
- copy
- line
- +copy
- how to
- dos (operating system)
- del
- ms-dos (operating system)
- dir
- dos tips
- dos for beginners
Thanks for reading this blog. Hope you get satisfied with the blog and definitely this blog must have valued your time and effort of reading.
Take a time to connect our other digital creations such as Instagram , Facebook and Youtube.
Social Media Links of Tech DCode :
YouTube : https://www.youtube.com/channel/UCjJnEdeugftBwQ3yMuD4B_A
Instagram : https://www.instagram.com/thetechdcode/
Facebook Page : https://www.facebook.com/thetechdcode
Twitter : https://twitter.com/thetechdcode
Telegram Channel : https://t.me/thetechdcode
Tech DCode Linktree : https://linktr.ee/thetechdcode
My Personal Handles : https://linktr.ee/virtualshivamin
Social Media Links of SHIVAM SINGH (OWNER) :
Instagram : https://www.instagram.com/virtualshivamin/
Facebook Page : https://www.facebook.com/virtualshivamin/
Twitter : https://twitter.com/virtualshivamin/
Personal Linktree : https://linktr.ee/virtualshivamin