Question
How does ms-dos interpret commands?

Answers

Each time a command is entered into MS-DOS the computer will go through the steps below.

Computer looks at the command.com for any internal command matches. If the command entered is not found it continues to the next step.
Computer looks for executable files in the current directory that match the user's command entered. If no files exist that match the users command it continues to the next step.
Computer looks at each of the directories in the environment path that match the user's command entered.
Below are some different scenarios of how MS-DOS may interpret a command that a user enters.
User enters the "dir" command.
The computer looks at the command.com and notices that dir is a valid internal command and executes the instructions for that command.
User enters the "format" command.
The computer is unable to find this command in the command.com or the local directory but finds it in the path and executes the command as an external command.
User enters the name of a game he or she wishes to run.
The computer is unable to locate the command in the command.com but notices the executable is in the current directory and runs that file.   Your Comment






Search
Can you Answer!!
  • Q How to apply themes?
  • Q How long the National Emergency can be imposed?
  • Q Who became the Chief Minister of Travancore-Cochin after the first election?
  • Q Explain Digital Video Disc.
  • Q What is ‘trie’ in data structure?
  • Q Named after chairs found at the Bargello Palace in Florence, Italy, what type of handicraft is Bargello?
  • Q Njavara, Gandhakasala, Jeerakasala, Velumbala, Kayama, and Chomala are examples of ______ in Kerala?
  • Q The National Security Act of 1974 established all of the military departments except (A)Army (B)Navy (C)Marines (D)Air Force
  • Q Which cardiac biomarker would be ideal to detect re-infarction in patients 4-10 days post initial myocardial infarction?
  • Q What do u mean by Function Overloading ?
  • Q What happened to you if you get a nosicomial condition