Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I am a college student and need some help with my homework assignment. I am taking an introductory OS scripting course (Windows 10 OS) and

I am a college student and need some help with my homework assignment.

I am taking an introductory OS scripting course (Windows 10 OS) and need to create a batch file named user.bat.

The batch file must use the net user command to add a local user account to the computer. The user's login name and password must be passed to the batch file by the user at the time the batch file is executed (parameters). The command must use the parameters entered by the user when creating the account.

BEFORE creating the account, the batch file must check if the account already exists. If the account already exists, display an informative message to the user (sample message provided below) and end the batch file. If the account doesn't exist, create it and display an appropriate message (sample message provided below).

The only messages that should be displayed in the output are those that I provided.

No system messages should be displayed.

I must use conditional processing symbols -- no IF statements.

This doesn't mean you can't use labels!

DO NOT nest a bunch of conditional statements on ONE line.

Sample Executions: The first example displays a sample message that would display if the user does not already exist and is successfully added. The second example displays a sample message that would display if the user already exists on the computer.

X:\>user john Microsoft! The john user was successfully added.

___________________________________

X:\>user john Microsoft! The john user already exists on this computer. Please use a different username.

Thanks for your help.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored 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

Recommended Textbook for

Database Design For Mere Mortals

Authors: Michael J Hernandez

4th Edition

978-0136788041

More Books

Students also viewed these Databases questions

Question

What are the different techniques used in decision making?

Answered: 1 week ago