Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Copy/Paste your script from step 2b here. In Notepad, select File rightarrow New to start a new file. Enter the following instructions. Save the file

Copy/Paste your script from step 2b here.

image text in transcribed

In Notepad, select File rightarrow New to start a new file. Enter the following instructions. Save the file as startup.bat. echo System Report Follows: ver echo Date and Time: date/T time/T hostname set NAME=your full name echo Establishing new environment variable Name = %NAME% ipconfig path The/T after date and time force these two instructions to output the date and time without prompting the user to see if either should be changed. Use your first and last name in the set Name instruction with a space between them. Run your script. You will notice that the set output there is too much text to fit on one screen, so you have to scroll up to read the full output. Notice as the program runs, each instruction is output and then the results are output. We do not want to see the actual instructions. To "hide" them, add as the first instruction in this script @echo off. Save the file and rerun it. Look at the output. What does ver do? What does hostname do? What does path do? b. With echo off, we do not see the actual instructions as they execute, only their output. And yet it would be helpful to know something about what we are seeing such as "Your PATH variable is currently storing:" before we see the output to path. Add echo statements to precede the hostname and path instructions. Save and rerun your script. Another instruction worth using is cls, which clears the screen. Add this instruction immediately after doesn't run your script. Another useful instruction pause, which pauses the output so that it doesn't scroll off the screen. Insert a pause instruction at an appropriate place in your script. Save and run your script. When you have satisfactorily fixed your script as described in this step, save your revised script to your answer file in response to this step. c. Start a new notepad file and enter the following. Add two blanks after the number in both set instructions. @echo off set/p x = Enter a number set/p y = Enter a second number if %x% gtr %y% (echo %x% is greater than %y%) else (echo %y% is greater than or equal to %x%)

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

Intelligent Information And Database Systems Asian Conference Aciids 2012 Kaohsiung Taiwan March 2012 Proceedings Part 2 Lnai 7197

Authors: Jeng-Shyang Pan ,Shyi-Ming Chen ,Ngoc-Thanh Nguyen

2012th Edition

3642284892, 978-3642284892

More Books

Students also viewed these Databases questions

Question

LO2 Distinguish among three types of performance information.

Answered: 1 week ago