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

  Find the standard sop

Find the standard SOP (sum of product) and POS (product of sum) expression of the subsequent Boolean function. F(A,B,C,D) = A(B' + CD') + A'BC'

  How does a job analysis relate to job descriptions

How does a job analysis help managers do their jobs better? How does a job analysis relate to job descriptions and job specifications? Why is it beneficial to have someone from outside the organization conduct the job analysis?

  Use active directory to establish security group memberships

How would you manage creation of novel user accounts in this organization? Utilizing Active Directory to establish security group memberships or manual creation and security.

  Deacon publishing house is a publishing company

Deacon Publishing House is a publishing company that produces consumer magazines. The house and home division which sells home improvement and home decorating magazines, has seen a 20% reduction in operating income over the past nine months, primaril..

  What can be done to secure a wireless network

The commanding officer is having second thoughts on using the wireless network that was first considered. He is concerned about the security of a wireless network. Prepare a slide presentation on wireless networking and what can be done to secure a w..

  Internet access providers

Should Internet access providers or telephone companies be allowed to monitor how you use your Internet or telephone connection? Why or why not?

  What year was the fortran design project begun

Why was the slowness of interpretation of programs acceptable in the early 1950s. In what year was the Fortran design project begun

  Program using an array

The array contains the hours worked for 5 employees. These hours are entered by the user. All employees earn the same hourly wage. The program will calculate the gross pay for each employee.

  What is the output of this code sequence

What is the output of this code sequence?

  How does a database system generate xml document

1. How does a database system generate XML document from database data? What is the importance of the order of tables in a SQL statement that uses FOR XML? (at least 200 words)

  Explaining multiple-level total

Whch of the following is an example of a multiple-level total? A total shown at the end of report for number of books in a library or Total shown every time the type of book changes (for example, reference, fiction, nonfiction).

  Display an appropriate message comparing the month expenses

Display an appropriate message comparing the month's expenses to the budget.

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