DOS Commands
- DEMO
Internal Commands
- DIR
- ECHO
- VER
- TYPE
- COPY
- Copy con
- Rename or ren
- DATE
- MKDIR or MD
- DEL
- Prompt
- TIME
- CHDIR or CD
- RMDIR or RD
- VOL
- PATH
- DOS commands that are present in the COMMAND.COM file and are automatically loaded into RAM when the PC is booted are called internal commands.
- Some of the internal commands are include dir, echo, ver etc
- DIR - It is used to view the list of files and directories.
- Syntax - C:\> dir
- VER - To view the Version of the current Operating System.
- Syntax - C:\> Ver
- TYPE - To View the contents of existing files.
- Syntax - C:\> Type [Existing file Name]
- COPY - Used to copy the files
- Syntax - C:\> copy <file name > <Destination path>
- COPY CON Used to Create a new file.
- Syntax - C:\> Copy con <New File Name>
- REN - Used to rename then file.
- Syntax - C:\> Ren <Old File Name> <New File Name>
- DATE - Used to view and change the system Date.
- Syntax - C:\> Date
- MD - Used to create a New Directory.
- Syntax - C:\> Md <New Directory Name>
- DEL - Used to Delete the Files
- Syntax - C:\> Del <Existing File Name>
- TIME - Used to view and change the System time.
- Syntax - C:\> Time
- CD - Used to change the Directory
- Syntax - C:\> Cd <Existing Directory Name>
- RD - Used to Delete the Directory
- Syntax - C:\> Rd <Existing Directory Name>
- VOL - Used to view the System Volume information Syntax - C:\> Vol
- Syntax - C:\> Path <location of the file>
- PATH - Used to set the file path
External Commands
- DOS commands that are not present in the COMMAND.COM file but are present in other files having the extensions COM, EXE or BAT are called external commands
- EDIT
- Attrib
- Chkdsk
- Deltree
- FDISK
- Format
- MEM
- MORE
- XCOPY
- EDIT - Used to edit the file contents.
- Syntax – C:\>edit <File Name>
- ATTRIB - Used to set/change the file Permission
- Syntax – C:\>attrib <file name> <attribute>
- CHKDSK - Used to check the integrity of the disk Syntax – C:\> Chkdsk
- DELTREE - Used to delete the Directory including of files and sub directories.
- Syntax – C:\>deltree <Directory Name>
- FDISK - Used to create, delete, view the Hard disk partition.
- Syntax – C:\>fdisk
- FORMAT - Used to format the Hard disk Partitions
- Syntax – C:\> format <specified drive> /option Option:
- /s – System file
- /q – Quick Format
- /u – Unconditional Format
- MEM - Used to check the system memory status Syntax – C:\>mem
- MORE - To view the list of files and directories in line by line.
- Syntax - C:\> dir|more
- XCOPY - Used to copy the directories including files and subdirectories.
- Syntax – C:\>xcopy <directory name> <destination path> /s
