MS DOS commands
MS DOS stands for Microsoft Disk Operating System,is a non-graphical command line operating system.It is a single-user, single-tasking computer operating system that uses a command line interface.
MS DOS commands are of Two Types :
1. Internal Commands
Command which stored in system memory and get loaded from command.com or cmd.exe are known as Internal command.This command does not need ant external file it is build in DOS shell.
Below are some of Internal command,
Get the list of files in current folder or directory
Clears current working screen of MS DOS)
View or change current date of system
View or change current time of system
REN or RENAME
Rename a file
Copy a file
Get the current DOS version
Create directory or folder
Remove directory or folder if empty
Note: All internal commands are still supported in Windows Command Prompt.
2. External Commands
Command which is not included in command.com are known as External command.
External command request to run a program which is in separate file these file called as com or exe file.
Here are some MS DOS’s external commands.
Remove folder including all sub folders and files
View or change disk’s label name
Format the Hard Disk or Floppy Disk
Run disk check on Hard Disk or Floppy Disk
External commands Command.com -> cd -> copy -> dir Internal command defrag.exe edit.com fdisk.exe scandisk.exe
For more information on commands, type the command with a “/?” following it.
Ignore the quotation marks “” in my examples.
Reserved symbols: ? / * & ; \ : % @ . ( ) < ># ! = |
copy base.doc c:\impfiles\
In this example we are copying base.doc file in D drive in folder name impfiles
ren base.doc second.doc
This command will rename file base.doc into second.doc
*.* wild card…means include all files with all extention
? wild card for one letter
In this next example, the dir command would only list files that end with .jpg file extension.
List files in MS-DOS using the dir command that contain f, les, and any other character in-between. For example files,fales,fdles etc would all be matched.
Viewing Directory examples :
dir /o = view directory in alphabetical order
dir /p = view directory by one page at a time
dir /w = view directory in wide format
You May Also Enjoy Reading This …