Presentation is loading. Please wait.

Presentation is loading. Please wait.

All sections to appear here Welcome to my pptPlex Slide Show, this can be executed in either two ways: 1.As a normal PowerPoint slide show: Example hit.

Similar presentations


Presentation on theme: "All sections to appear here Welcome to my pptPlex Slide Show, this can be executed in either two ways: 1.As a normal PowerPoint slide show: Example hit."— Presentation transcript:

1

2 All sections to appear here Welcome to my pptPlex Slide Show, this can be executed in either two ways: 1.As a normal PowerPoint slide show: Example hit F5 2.Or download the pptPlex plugin at: pptPlex Download Click on the pptPlex Tab and Run From OverviewpptPlex Download

3 David J.

4  This is a very simple start off program written in notepad writing a “script file” using the systems command line (DOS) to display. We will be creating a very simple program if you will to display a name in CMD. This is used in the “PC” Windows operating systems.  What is a batch file? Batch file LinkBatch file Link *Cite link: searchwinit.techtarget.com - accessed 2/15/2012

5  To write a batch file  To display your name in the Command Prompt  To use the correct syntax  Answer Questions

6 NarrativeUse Notepad to create a new file called hello.bat. Add the code shown below to the file and save it. Below are the steps as follows: Step 1· In the Start menu click: Programs – Accessories – Notepad “or windows 7 click the start, type notepad” Notepad starts up showing an empty document with the title: “Untitled - Notepad” Step 2· In the Notepad menu click: File – Save As The Save As dialog shows up Step 3· In the Save As dialog use the Save in drop down box to select: Desktop or where you want to save it · In the File name field overwrite the file name by typing: hello.bat · Click: Save The Save As dialog will close. Notepad shows an empty document with the title: “hello.bat - Notepad”. A new icon with the name hello.bat will appear on your Desktop or where you saved this file. Step 4· Type the following code into notepad: The Code@echo off echo “Hello, Replace with your name” pause Step 5· In the Notepad menu choose: File – and Save That’s it!Your fist batch file is ready to run.

7 Step 1· Locate the icon called hello.bat on your desktop or where you saved it. · Double click the hello.bat icon A new window will open showing the following message: Hello “Your name” Press any key to continue... Step 2· Press any key The window will close. That’s it!You just executed your first batch file!

8  MY BATCH FILE – HELLO.BATHELLO.BAT May not work in uploaded state…(If not code below…) CODE: @echo off echo Hello David! pause OUTPUT: Hello David! Press any key to continue...

9  What is the @ symbol for?  What does echo do – on or off?  What does pause do?

10  The @ symbol is used so the echo command “what command you are using” will stay throughout the entire batch file.  The echo on is the display of each line “showing your commands”. The echo off is to display the command output. Try both yourself to see the different results.  The pause is used to “pause” stop at that line so that the command prompt stays on the screen until the user hits and key to close the command prompt window.

11  Please Leave your feedback…  The video below is a extracurricular listening activity. My band improvising an Instrumental “warming up” ;)


Download ppt "All sections to appear here Welcome to my pptPlex Slide Show, this can be executed in either two ways: 1.As a normal PowerPoint slide show: Example hit."

Similar presentations


Ads by Google