Question 2. Batch File Creation In this section, you will interface…

Question 2. Batch File Creation In this section, you will interface…

Question 2. Batch File Creation In this section, you will interface…

Question 2. Batch File CreationIn this section, you will interface with the operating system using DOS commands.

For each of the following tasks, list the correct DOS command. Note: While it is not necessary to perform these tasks on a computer, the assignment is structured for each task to be completed in sequence; that is to say, a task may depend on the state created by previous tasks.

Don't use plagiarized sources. Get Your Custom Essay on
Need an answer from similar question? You have just landed to the most confidential, trustful essay writing service to order the paper from.
Just from $13/Page
Order Now
  1. Name the batch file EXDIR.BAT.
  2. Include your name as a remark in EXDIR.BAT.
  3. Include the creation date as a remark in EXDIR.BAT.
  4. Include the function of EXDIR.BAT as a remark in EXDIR.BAT- redirects the output of dir C: to a file named by the user.
  5. The filename provided by the user is the first argument.
  6. A valid switch for the command dir is the optional second argument.
  7. If the file named by the user already exists, EXDIR.BAT immediately generates an error message and then exits without executing dir.
  8. The error message generated by EXDIR.BAT must display, “filename already exists, aborting EXDIR.”

Please upload and submit your batch file (EXDIR.BAT) when you are done.