Answered step by step
Verified Expert Solution
Link Copied!

Question

00
1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions