Create a batch script file and save it

Assignment Help Basic Computer Science
Reference no: EM13929051

Executing Windows CLI Commands in a Batch File.

1.  I need to write a batch script file using Notepad++ and name it MyCommand.cmd

2. I then need to write a pseudocode statements for my script. I wrote the script but it doesn't work when I copy and paste it into the CLI.  I'm supposed to create a batch script file and save it but I'm not sure of how to retrieve it from the CLI because I'm not sure which command to use to retrieve it so it can run in the CLI.

Here is the script:

cls

@echo off

Rem Jerry Springer

Rem January 2014

echo MyCommands.cmd Script is now running

echo.

netsh interface ip show config NIC

netsh interface ip set address source=static 150.100.10.60 255.255.255.0 150.100.10.1 0

timeout /t 6 > nul

netsh interface ip show config NIC

netsh interface ip set address NIC source=dhcp

timeout /t 6 > nul

netsh interface ip show address config NIC

echo.

 

shutdown /s /t 60 /c "Local Shutdown in 1 minute!!"

timeout /t 4 > nul

shutdown /a

echo Shutdown has been Aborted

echo.

echo End of Script

Reference no: EM13929051

Questions Cloud

Assume the van was sold on january : Assume the van was sold on January 1, 2016, for $21,000. Prepare the journal entry for the sale of the van in 2016.
Measure the ocv of your solar panel : Measure the OCV of your solar panel in the sun or with a 100 watt incandescent bulb shining on it.
How has this course changed your approach to leadership : Go to the contents of any current (2001-present), peer-reviewed leadership journal; find any topic that is receiving increased emphasis by researchers. Describe the topic in one paragraph, including a brief overview of methodology. What are the im..
Assignment on presenting to stakeholders : Resource: pp. 192-193 (Ch. 6) of Understanding Financial Statements Read the scenario in Problem 6.9 on p. 234 (Ch. 6).
Create a batch script file and save it : Write a pseudocode statements for my script. I wrote the script but it doesn't work when I copy and paste it into the CLI.  I'm supposed to create a batch script file and save it but I'm not sure of how to retrieve it from the CLI because I'm not sur..
Recognize depreciation for each of the five years : Prepare the journal entries to recognize depreciation for each of the five years, assuming that the company uses.
What leadership theory would you use in a crisis situation : What leadership theory would you use in a crisis situation? In your own words, describe contingency leadership. What is your favorite theory and why?
Receivables investment : Medwig Corporation has a DSO of 27 days. The company averages $8,750 in credit sales each day. What is the company's average accounts receivable? Round your answer to the nearest dollar.
Cash management-maintaining the same level of sales : Williams & Sons last year reported sales of $7 million and an inventory turnover ratio of 3.5. The company is now adopting a new inventory system. If the new system is able to reduce the firm's inventory level and increase the firm's inventory turnov..

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Build linear models to represent relation advertising-brand

Build linear models to represent the relation between advertising and brand preference for these two groups. What preferences would the models predict for advertising of $60 million?

  Create an applet to draw a digit using the method fillrect

Create an applet to draw a digit using the method fillRect of the class Graphics. For instance, if the input is 4, the applet will display the digit 4. In java language please

  Function creates and returns 1d list of final prices

Write a functon def final_price_list(inventory, row, col) that has 3 parameters - 2D list described above, number of rows and number of columns. Function creates and returns 1D list of final prices for all items after discount is applied. Assume t..

  Search the web for steganographic tools

Search the Web for steganographic tools.

  Create a program that asks users to enter the name

Create a program that asks users to enter the name of their favorite team. Have the program display this team's name. Then have program ask the user to enter the name of their five previous oponents,

  Compare the types of computers

compare desktop and laptop, Introduce this two type of computer to the audience.

  First integer of input refers to the total weight the ship

First integer of input refers to the total weight the ship can carry. Second integer refers to the number of cargo present and the rest of the integers represents the individual weight of the cargo

  Write an assembly program using marie

Write an assembly program using MARIE to receive an input in decimal that represents the number of numbers in a list. Then input a list of numbers one by one, display the number of numbers in the list as well as the numbers one by one, and find th..

  Write the definition of a class clock

Write the definition of a class Clock . The class has no constructors and three instance variables. One is of type int called hours , initialized to 12 , another is of type boolean called isTicking , initialized to true , and the last one is of ty..

  Class automobile has a composite object

Assume that a definition of class Automobile has a composite object called my Engine. Also assuembers of class Engine me the all the data members of class Engine that contain information

  The database developer for a local colleg

Suppose that you are the database developer for a local college. The Chief Information Officer (CIO) has asked you to provide a summary of normalizing database tables that the IT staff will use in the upcoming training session.

  What are the bounds on the number of nodes

How many nodes ndoes a perfect k-ary tree of height h have and why and What are the bounds on the number of nodes of a complete k-ary tree of height h. Give examples of two extremes.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd