Question: I am a college student taking an INTRODUCTORY operating system (Windows 10) SCRIPTING course and need some help with creating this batch file. The batch

I am a college student taking an INTRODUCTORY operating system (Windows 10) SCRIPTING course and need some help with creating this batch file.

The batch file must provide the user with a list of tasks to choose and must include those listed below:

Please choose a task from the list below

-----------------------------------------------------

A) Display IP Settings

B) Display a list of all drives on this computer

C) Display contents of hosts file

D) Display OS Name & computer Name

E) Display all hidden files

Q) Quit

Choose one [A,B,C,D,E,Q]?

When a user selects a menu option, the respective task must be completed.

I must use the CHOICE command and IF ERRORLEVEL.

Add some color to the screen (color /?) changing the color of the text and background and set it back once done.

After performing the chosen task a message should be displayed indicating the command has completed and pause should be used to give the user a chance to review the output and message.

Once complete the menu should redisplay and the batch file should only end when the user selects Q to quit.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!