CN1266 Network Scripting Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+

Slides:



Advertisements
Similar presentations
CN2140 Server II (V2) Kemtis Kunanuraksapong MSIS with Distinction MCT, MCITP, MCTS, MCDST, MCP, A+
Advertisements

Question Bank. Explain the syntax of if else statement? Define Union Define global and local variables with example Concept of recursion with example.
Samsung Smart TV is a web-based application running on an application engine installed on digital TVs connected to the Internet.
The eXtensible Markup Language (XML) An Applied Tutorial Kevin Thomas.
CS1020 Week 3: 29th January 2015.
The Librarian Web Page Carol Wolf CS396X. Create new controller  To create a new controller that can manage more than just books, type ruby script/generate.
CN2180 MS SQL Server Kemtis Kunanuraksapong MSIS with Distinction, A+ MCTS, MCDST, MCP.
CN1266 Network Scripting Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
CN2140 Server II Kemtis Kunanuraksapong MSIS with Distinction MCT, MCITP, MCTS, MCDST, MCP, A+
1 Introduction to OBIEE: Learning to Access, Navigate, and Find Data in the SWIFT Data Warehouse Lesson 8: Printing and Exporting an OBIEE Analysis This.
FILE UPLOADS CHAPTER 11. THE BASIC PROCESS 1.The HTML form displays the control to locate and upload a file 2.Upon form submission, the server first stores.
CN1176 Computer Support Kemtis Kunanuraksapong MSIS with Distinction MCT, MCTS, MCDST, MCP, A+
CN1260 Client Operating System Kemtis Kunanuraksapong MSIS with Distinction MCT, MCITP, MCTS, MCDST, MCP, A+
CN1276 Server Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
CN2668 Routers and Switches Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
CN2668 Routers and Switches Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
Create a Website on the CWU network Find “How to Post a Web Page with a PC”
CN1260 Client Operating System Kemtis Kunanuraksapong MSIS with Distinction MCT, MCITP, MCTS, MCDST, MCP, A+
MS WINDOWS POWER SHELL CSE 535 Operating Systems.
CN1176 Computer Support Kemtis Kunanuraksapong MSIS with Distinction MCT, MCTS, MCDST, MCP, A+
CN2140 Server II Kemtis Kunanuraksapong MSIS with Distinction MCT, MCITP, MCTS, MCDST, MCP, A+
CN1276 Server (V3) Kemtis Kunanuraksapong MSIS with Distinction MCT, MCTS, MCDST, MCP, A+
CN1260 Client Operating System Kemtis Kunanuraksapong MSIS with Distinction MCT, MCITP, MCTS, MCDST, MCP, A+
NetTech Solutions Working with Web Elements Lesson 6.
CN2140 Server II Kemtis Kunanuraksapong MSIS with Distinction MCT, MCITP, MCTS, MCDST, MCP, A+
CN1260 Client Operating System Kemtis Kunanuraksapong MSIS with Distinction MCT, MCITP, MCTS, MCDST, MCP, A+
CN2140 Server Kemtis Kunanuraksapong MSIS with Distinction MCT, MCITP, MCTS, MCDST, MCP, A+
CN1176 Computer Support Kemtis Kunanuraksapong MSIS with Distinction MCT, MCTS, MCDST, MCP, A+
CN1176 Computer Support Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
CN1276 Server Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
CN1276 Server Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
Creating Dynamic Web Pages Using PHP and MySQL CS 320.
PHP - Basic Language Constructs CSCI 297 Scripting Languages - Day Two.
CN2668 Routers and Switches Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
CN1266 Network Scripting V1.2 Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
CN2140 Server II Kemtis Kunanuraksapong MSIS with Distinction MCT, MCITP, MCTS, MCDST, MCP, A+
Kemtis Kunanuraksapong MSIS with Distinction, A+ MCT, MCTS, MCDST, MCP.
CN2180 MS SQL Server Kemtis Kunanuraksapong MSIS with Distinction, A+ MCTS, MCDST, MCP.
Chapter 10: BASH Shell Scripting Fun with fi. In this chapter … Control structures File descriptors Variables.
Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
CN1176 Computer Support Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
PowerShell For SharePoint Developers Neil Iversen Inetium
CN1276 Server Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
CN1266 Network Scripting Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
CN2180 MS SQL Server Kemtis Kunanuraksapong MSIS with Distinction, A+ MCTS, MCDST, MCP.
Understand Configuration Files Web Development Fundamentals LESSON 1.6.
Website Development & Management A PHP Exercise CIT Fall Instructor: John Seydel, Ph.D.
 An alias is an alternative name assigned to a Cmdlet.  Aliases allow users to quickly interact with the shell.  The Cmdlet get-alias is.
CN1260 Client Operating System Kemtis Kunanuraksapong MSIS with Distinction MCT, MCITP, MCTS, MCDST, MCP, A+
The Web Wizard’s Guide To DHTML and CSS Chapter 8 Putting It All Together and Moving Forward.
1 Lecture 4 Post-Graduate Students Advanced Programming (Introduction to MATLAB) Code: ENG 505 Dr. Basheer M. Nasef Computers & Systems Dept.
Office 2003: Microsoft Office 2003: Advanced 1 ADVANCED MICROSOFT ACCESS Lesson 13 – Importing and Exporting Data.
Windows PowerShell. What is Windows PowerShell? A command-line interface (CLI) A new way of developing Windows and other products to be more manageable.
CN2668 Routers and Switches Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
CN2180 Chapter 4 Kemtis Kunanuraksapong MSIS with Distinction, A+ MCTS, MCDST, MCP Kemtis Kunanuraksapong MSIS with Distinction, A+ MCTS, MCDST, MCP.
KompoZer. What is it? A FREE product used to design websites A FREE product used to design websites A WYSIWYG HTML Editor A WYSIWYG HTML Editor –WYSIWYG:
CN1266 Network Scripting Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
CN2180 Chapter 2 Kemtis Kunanuraksapong MSIS with Distinction, A+ MCTS, MCDST, MCP.
CN1276 Server Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+
Chapter 2 The Web and Business Applications. Agenda Cell referencing Fill handle Enter a formula using pointing method Comment Formatting Date arithmetic.
Outline of Script Import Modules Setup Workspace Environment and Assign Data Path Variables Summary of Script Title and Author Info.
Mark-up Languages Compare and describe at least 3 mark-up languages and what they do.
Introduction to OBIEE:
Microsoft Access 2003 Illustrated Complete
Using Access and the Web
Microsoft Office Illustrated
Cmdlets “Command-lets”
WebDAV Design Overview
Lab 2: Terminal Basics.
Class 4: Building Interactive Web Pages
Presentation transcript:

CN1266 Network Scripting Kemtis Kunanuraksapong MSIS with Distinction MCTS, MCDST, MCP, A+

Agenda Chapter 12: Readin’ and Writin’ Files Quiz Exercise

Moving around the file system Set-Location ▫Alias : CD Get-Location ▫Return a string

Managing Directories Creating directories ▫MD ’C:\test folder ’ ▫MKDIR ’C:\test folder ’ Deleting directories ▫Remove-Item ’C:\test folder’ ▫Remove-Item –Recurse ’C:\’test folder’ Copying directories ▫Copy-Item ’C:\test folder’ ▫Copy-Item –Recurse ’C:\’test folder’

Managing Directories (2) Moving directories ▫Move-Item ’C:\test folder’ C:\folder2 ▫Move ’C:\’test folder’ C:\folder2 Renaming directories ▫Rename-Item ’C:\’test folder’ C:\NewFolder ▫Rename-Item –Recurse ’C:\’test folder’

Writing Files 3 ways to write a file ▫Redirection operator  Get-ChildItem C:\Windows\system32 > C:\temp\contents.txt ▫Out-File  Get-ChildItem C:\Windows\system32 | Out-File C:\temp\contents2.txt  See Table 12-1 on Page 165 for options ▫Set-Content  Get-ChildItem C:\Windows\system32 | Set-Content C:\temp\contents3.txt

Reading files $data = Get-Content C:\temp\contents.txt ▫Result will be stored in two dimensions array ▫write-host ($data[20][0] +$data[20][17]) Specific numbers of lines to read ▫$data = Get-Content C:\temp\contents.txt – TotalCount 20

Working with XML Extensible Markup Language ▫ ▫ Joe ▫ Mark ▫ Allan ▫ See diagram on Page 167

Reading and Writing XML files You have to cast variable first for XML file ▫See – strXML.ps1 ▫[xml]$myXML = Get-Content c:\temp\sam.xml ▫$myXML.desert.name ▫$myXML.desert.animal ▫See – XML2.ps1

Add new element Create new element ▫$newAnimal = $myXML.CreateElement("animal") ▫$newAnimal.setAttribute("type","vulture") ▫$newAnimal.psbase.innertext = "George" ▫$myXML.desert.AppendChild($newAnimal) Use Save method to save the XML file ▫$myXML.save("C:\temp\sam.xml")

Saving objects in XML files Export ▫Get-Process | Export-CliXML C:\temp\proc.xml Import ▫$procHistory = Import-CliXML C:\temp\proc.xml ▫$procHistory ▫$procHistory | Where-Object {$_.Handles -gt 100} | Sort-Object Handles

Working with HTML To get the result in HTML format ▫Get-Process | ConvertTo-HTML | Out-File c:\temp\proc.html To make it easier to read or nicer ▫See Code on Page 173