Question

I am a college student taking an INTRODUCTORY Windows 10 Operating System SCRIPTING course and need...

I am a college student taking an INTRODUCTORY Windows 10 Operating System SCRIPTING course and need some help with the batch file I am creating for a homework assisgnment.  

I created the menu below and need some help with option A

Please choose a task from the list below

A) Add a new user account

I need to use SET /P to prompt for a login name and if the user already exists display a message and return to the menu.

If the user does not exist, prompt for the user's full name and password and add the user and then display a message (including login name) that shows the user account was added ok.

Thanks.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

The usual requirements when submitting please....Also be sure to use spacing, and indenting in the script for readability. Points will be lost if the script is not well formatted. In addition, be sure to include clear and concise documentation; particularly where conditions are processed.

NOTE: The topic of variable expansion will be covered after this homework is assigned. Please note that de
pending on the appoarch you take to completing the first batch file, you may need to deal with how variables are expanded. If you are using simple IF statements it will not be a problem but if you're using complex IF lecture on variable expansion.

1) Create a batch file that generates the below menu

-> Use the SET /P command to prompt for a menu selection

-> When Add a new User is selected,

-> Use Set /p to prompt for a login name.

-> Check if the user already exists, if the user exist, display an appropriate message and return to the menu.

-> If the user doesn’t already exist, prompt for the user’s password and full name and add the user. After the user account is added, display a message (one that includes the user’s login name) that indicates the user was successfully added.

-> When Display all settings for an existing user is selected,

-> Use set /p to prompt for the login name

-> Before displaying the user’s information, confirm the user exists.

-> If it doesn’t exist, display an appropriate message and return to the menu

-> When delete an existing account is selected,

-> Use Set /p to prompt for the login name.

-> Before deleting the account, confirm it exists.

-> If it doesn’t exist, display an appropriate message and return to the menu

-> If it does exist, delete it. After the user account is deleted, display a message (one that includes the user’s login name) that indicates the user was successfully deleted.

-> When reset an existing user’s password is selected,

-> User set /p to prompt for the login name.

-> Confirm the user exists before attempting to reset the password.

-> If the user doesn’t exist, display an appropriate message and return to the menu.

-> If the user does exist, change his/her password. After the user’s password is reset, display a message (one that includes the user’s login name) that indicates the user was successfully deleted.

-> All messages presented must be generated by you; no system messages should be displayed.

-> Keep a tally of the number users that were added, the number of users that were deleted and the number of passwords that were changed

-> The batch file should not end until the user choses to quit. When the batch file ends, display an appropriate message informing the user how many users were deleted, how many were added and how many passwords were changed.

-> If /? is entered as a parameter the batch file’s general purpose and syntax must be professionally

presented.

2) Create a batch file named welcome.bat that will display the below message. The values in italics are based on the current date and the current time. The “morning, afternoon or evening” message must be based on the time of day: anything before noon is morning, from noon to 6 p.m. is afternoon and anything after 6 pm is evening. The full month name and the full day name must be used in the message. Do not use 12 if statements to get the full month name and don not use 7 if statements to get the full day name. Use a variable and the CALL SET command (as presented in class) to get the full month and full day names. When creating variables in this batch file, they must be configured as local variables.

Hello %username%.

Today’s date is Current System Date

It is currently Current system time (12 hour clock)

Today is FullNameofDayOfWeek, and it is FullMonthName, DayOfMonthNumber 4 digit year.

Have a wonder (morning, afternoon or evening)!

Three sample outputs are presented below. The message must be formatted exactly as displayed below.                                                                                                                                                   

-> Pay attention to spacing, formatting, wording and punctuation.

3) Create a batch file that determines the number of hidden files in a directory and the number of hidden directories in a directory. The batch file should display a message exactly like the one below. The message must include the total number of files in the directory, the number of files that are hidden and the number of files that are not hidden. In addition, the message must include the total number of directories in the directory, the number of directories that are hidden and the number of directories that

1) Create a batch file that generates the below menu

-> Use the SET /P command to prompt for a menu selection

-> When Add a new User is selected,

-> Use Set /p to prompt for a login name.

-> Check if the user already exists, if the user exist, display an appropriate message and return to the menu.

-> If the user doesn’t already exist, prompt for the user’s password and full name and add the user. After the user account is added, display a message (one that includes the user’s login name) that indicates the user was successfully added.

-> When Display all settings for an existing user is selected,

-> Use set /p to prompt for the login name

-> Before displaying the user’s information, confirm the user exists.

-> If it doesn’t exist, display an appropriate message and return to the menu

-> When delete an existing account is selected,

-> Use Set /p to prompt for the login name.

-> Before deleting the account, confirm it exists.

-> If it doesn’t exist, display an appropriate message and return to the menu

-> If it does exist, delete it. After the user account is deleted, display a message (one that includes the user’s login name) that indicates the user was successfully deleted.

-> When reset an existing user’s password is selected,

-> User set /p to prompt for the login name.

-> Confirm the user exists before attempting to reset the password.

-> If the user doesn’t exist, display an appropriate message and return to the menu.

-> If the user does exist, change his/her password. After the user’s password is reset, display a message (one that includes the user’s login name) that indicates the user was successfully deleted.

-> All messages presented must be generated by you; no system messages should be displayed.

-> Keep a tally of the number users that were added, the number of users that were deleted and the number of passwords that were changed

-> The batch file should not end until the user choses to quit. When the batch file ends, display an appropriate message informing the user how many users were deleted, how many were added and how many passwords were changed.

-> If /? is entered as a parameter the batch file’s general purpose and syntax must be professionally

presented.

2) Create a batch file named welcome.bat that will display the below message. The values in italics are based on the current date and the current time. The “morning, afternoon or evening” message must be based on the time of day: anything before noon is morning, from noon to 6 p.m. is afternoon and anything after 6 pm is evening. The full month name and the full day name must be used in the message. Do not use 12 if statements to get the full month name and don not use 7 if statements to get the full day name. Use a variable and the CALL SET command (as presented in class) to get the full month and full day names. When creating variables in this batch file, they must be configured as local variables.

Hello %username%.

Today’s date is Current System Date

It is currently Current system time (12 hour clock)

Today is FullNameofDayOfWeek, and it is FullMonthName, DayOfMonthNumber 4 digit year.

Have a wonder (morning, afternoon or evening)!

Three sample outputs are presented below. The message must be formatted exactly as displayed below.                                                                                                                                                     

-> Pay attention to spacing, formatting, wording and punctuation.

Sample output 1:

Sample output 2:

Sample output 3:

3) Create a batch file that determines the number of hidden files in a directory and the number of hidden directories in a directory. The batch file should display a message exactly like the one below. The message must include the total number of files in the directory, the number of files that are hidden and the number of files that are not hidden. In addition, the message must include the total number of directories in the directory, the number of directories that are hidden and the number of directories that are not hidden. When creating variables in this batch file, they must be configured as local variables.

The batch file’s name must be Count.bat. The directory name must be provided using the set /p command.

Add a comment
Know the answer?
Add Answer to:
I am a college student taking an INTRODUCTORY Windows 10 Operating System SCRIPTING course and need...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • I am a college student taking an INTRODUCTORY Windows 10 operating system SCRIPTING course and need...

    I am a college student taking an INTRODUCTORY Windows 10 operating system SCRIPTING course and need some help with creating this batch script.   I need to create the below menu: Please choose a task from the list below A) Add a new user account I need to use the SET /P command to add a new user and prompt for a login name. Check if the user already exists and if so display an appropriate message and return to the...

  • I am a college student and need some help with this homework problem. I am taking...

    I am a college student and need some help with this homework problem. I am taking an introductory Operating Scripting course (windows 10) I need to create a batch file named UserInfolog.bat.   Instead of displaying the output to the screen, redirect all output to a file named computername.log and it must be created each time the batch file is executed.   After redirecting the output to the log file, the batch file must display that file's contents in the command prompt...

  • I am taking an INTRODUCTORY Windows OS scripting course and could use your help in completing...

    I am taking an INTRODUCTORY Windows OS scripting course and could use your help in completing this homework assignment: I need to make sure that my batchfile directory is automatically included in the search path every time I open a command prompt window. My answer must be a step-by-step explanation (bulleted or numbered list) of the EXACT approach I took to complete this task. I must also provide an explanation of EXACTLY how I tested this to make sure it...

  • I am a college student taking an intro to linux shell programming course and need some...

    I am a college student taking an intro to linux shell programming course and need some help with this question. I need to write an until statement as indicated: Check to see if the file cis132 exists in the current directory. If it does not a message will be printed every 10 seconds indicating that file does not exist. Once the file is created the message will stop. Thanks for your help.

  • need help in Java Now we’ll continue our project by writing a Facebook class that contains an ArrayList of Facebook user...

    need help in Java Now we’ll continue our project by writing a Facebook class that contains an ArrayList of Facebook user objects. The Facebook class should have methods to list all of the users (i.e. print out their usernames), add a user,delete a user, and get the password hint for a user You will also need to create a driver program. The driver should create an instance of the Facebook class and display a menu containing five options: list users...

  • Hello I am taking an Introduction to Programming class and I need help coming up with...

    Hello I am taking an Introduction to Programming class and I need help coming up with a Psuedocode for an algorithm. Here is the assignment: 1. Use an array to prompt the user to enter a credit card account number 2. Use the sequential search algorithm to locate the credit card number entered by the user 3. If the credit card number is NOT in the array, display a message indicating the number is invalid 4. If the credit card...

  • I have to use java programs using netbeans. this course is introduction to java programming so...

    I have to use java programs using netbeans. this course is introduction to java programming so i have to write it in a simple way using till chapter 6 (arrays) you can use (loops , methods , arrays) You will implement a menu-based system for Hangman Game. Hangman is a popular game that allows one player to choose a word and another player to guess it one letter at a time. Implement your system to perform the following tasks: Design...

  • Windows operating system 1. Write a simple batch file named LastName Final.bat (where LastName is your...

    Windows operating system 1. Write a simple batch file named LastName Final.bat (where LastName is your own last name), which accomplishes the following: a Disable echo output b. Clear the screen c. Welcome the user with the following message (where current Date and curent Time is the computer's current date and current time, respectfully-these values should be output using a command line command, meaning do not type in the date or time into your batch file). A sample of this...

  • Can you help me? I am taking an INTRODUCTORY unix/linux shell programming course and need to...

    Can you help me? I am taking an INTRODUCTORY unix/linux shell programming course and need to know what the following command will do. Need a SIMPLE answer please. onsystem john1 &

  • Hello. can anyone solve this. i am having hard time with this. please post a solution...

    Hello. can anyone solve this. i am having hard time with this. please post a solution ASAP a) Create a class named Student. Data fields for Student class include an integer Student ID, a String name, and a double CGPA. Methods include a constructor that requires values for all data fields, as well as get and set methods for each of the data fields. b) Create an application that allows a user to enter values for an array of 15...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT