Suche senden
Hochladen
Power shell – scriptblock
•
Als PPTX, PDF herunterladen
•
0 gefällt mir
•
356 views
L
LearningTech
Folgen
Technologie
Business
Melden
Teilen
Melden
Teilen
1 von 14
Jetzt herunterladen
Empfohlen
Compiler for Dummy 一點都不深入的了解 Compiler, Interpreter 和 VM
Compiler for Dummy 一點都不深入的了解 Compiler, Interpreter 和 VM
Li Hsuan Hung
ES5 introduction
ES5 introduction
otakustay
Worktest测试框架原理
Worktest测试框架原理
Janeay
PHPUnit + Xdebug 单元测试技术
PHPUnit + Xdebug 单元测试技术
hoopchina
改善程序设计技术的50个有效做法
改善程序设计技术的50个有效做法
crasysatan
Testing in python 2.7.3
Testing in python 2.7.3
Wen Liao
Free rtos workshop1@nuu
Free rtos workshop1@nuu
紀榮 陳
Javascript Training
Javascript Training
beijing.josh
Empfohlen
Compiler for Dummy 一點都不深入的了解 Compiler, Interpreter 和 VM
Compiler for Dummy 一點都不深入的了解 Compiler, Interpreter 和 VM
Li Hsuan Hung
ES5 introduction
ES5 introduction
otakustay
Worktest测试框架原理
Worktest测试框架原理
Janeay
PHPUnit + Xdebug 单元测试技术
PHPUnit + Xdebug 单元测试技术
hoopchina
改善程序设计技术的50个有效做法
改善程序设计技术的50个有效做法
crasysatan
Testing in python 2.7.3
Testing in python 2.7.3
Wen Liao
Free rtos workshop1@nuu
Free rtos workshop1@nuu
紀榮 陳
Javascript Training
Javascript Training
beijing.josh
A Brief Introduction to Regular Expression with Python 2.7.3 Standard Library
A Brief Introduction to Regular Expression with Python 2.7.3 Standard Library
Wen Liao
nodeMCU IOT教學02 - Lua語言
nodeMCU IOT教學02 - Lua語言
吳錫修 (ShyiShiou Wu)
Avm2虚拟机浅析与as3性能优化(陈士凯)
Avm2虚拟机浅析与as3性能优化(陈士凯)
FLASH开发者交流会
Java7 fork join framework and closures
Java7 fork join framework and closures
wang hongjiang
Coding guideline
Coding guideline
斯理 衛
Effective linux.1.(commandline)
Effective linux.1.(commandline)
wang hongjiang
Hello Javascript
Hello Javascript
Baidu, Inc.
Arduino應用系統設計 - Arduino程式快速入門
Arduino應用系統設計 - Arduino程式快速入門
吳錫修 (ShyiShiou Wu)
shell script introduction
shell script introduction
Jie Jin
Maintainable PHP Source Code
Maintainable PHP Source Code
Bo-Yi Wu
Cppcheck分析
Cppcheck分析
Wu Liang
functional-scala
functional-scala
wang hongjiang
compiler fuzzer : prog fuzz介紹
compiler fuzzer : prog fuzz介紹
fdgkhdkgh tommy
Ken - caman.js,SoundManager2.js,CSS3 Animations
Ken - caman.js,SoundManager2.js,CSS3 Animations
LearningTech
Design pattern builder 20131115
Design pattern builder 20131115
LearningTech
Bcp
Bcp
LearningTech
20121228 jQueryui - dialog - By Drake
20121228 jQueryui - dialog - By Drake
LearningTech
20151120 ian cocos2d js
20151120 ian cocos2d js
LearningTech
Expression 的介紹及應用
Expression 的介紹及應用
LearningTech
Peggy - XPath
Peggy - XPath
LearningTech
vim
vim
LearningTech
PostCss
PostCss
LearningTech
Weitere ähnliche Inhalte
Was ist angesagt?
A Brief Introduction to Regular Expression with Python 2.7.3 Standard Library
A Brief Introduction to Regular Expression with Python 2.7.3 Standard Library
Wen Liao
nodeMCU IOT教學02 - Lua語言
nodeMCU IOT教學02 - Lua語言
吳錫修 (ShyiShiou Wu)
Avm2虚拟机浅析与as3性能优化(陈士凯)
Avm2虚拟机浅析与as3性能优化(陈士凯)
FLASH开发者交流会
Java7 fork join framework and closures
Java7 fork join framework and closures
wang hongjiang
Coding guideline
Coding guideline
斯理 衛
Effective linux.1.(commandline)
Effective linux.1.(commandline)
wang hongjiang
Hello Javascript
Hello Javascript
Baidu, Inc.
Arduino應用系統設計 - Arduino程式快速入門
Arduino應用系統設計 - Arduino程式快速入門
吳錫修 (ShyiShiou Wu)
shell script introduction
shell script introduction
Jie Jin
Maintainable PHP Source Code
Maintainable PHP Source Code
Bo-Yi Wu
Cppcheck分析
Cppcheck分析
Wu Liang
functional-scala
functional-scala
wang hongjiang
compiler fuzzer : prog fuzz介紹
compiler fuzzer : prog fuzz介紹
fdgkhdkgh tommy
Was ist angesagt?
(13)
A Brief Introduction to Regular Expression with Python 2.7.3 Standard Library
A Brief Introduction to Regular Expression with Python 2.7.3 Standard Library
nodeMCU IOT教學02 - Lua語言
nodeMCU IOT教學02 - Lua語言
Avm2虚拟机浅析与as3性能优化(陈士凯)
Avm2虚拟机浅析与as3性能优化(陈士凯)
Java7 fork join framework and closures
Java7 fork join framework and closures
Coding guideline
Coding guideline
Effective linux.1.(commandline)
Effective linux.1.(commandline)
Hello Javascript
Hello Javascript
Arduino應用系統設計 - Arduino程式快速入門
Arduino應用系統設計 - Arduino程式快速入門
shell script introduction
shell script introduction
Maintainable PHP Source Code
Maintainable PHP Source Code
Cppcheck分析
Cppcheck分析
functional-scala
functional-scala
compiler fuzzer : prog fuzz介紹
compiler fuzzer : prog fuzz介紹
Andere mochten auch
Ken - caman.js,SoundManager2.js,CSS3 Animations
Ken - caman.js,SoundManager2.js,CSS3 Animations
LearningTech
Design pattern builder 20131115
Design pattern builder 20131115
LearningTech
Bcp
Bcp
LearningTech
20121228 jQueryui - dialog - By Drake
20121228 jQueryui - dialog - By Drake
LearningTech
20151120 ian cocos2d js
20151120 ian cocos2d js
LearningTech
Expression 的介紹及應用
Expression 的介紹及應用
LearningTech
Peggy - XPath
Peggy - XPath
LearningTech
Andere mochten auch
(7)
Ken - caman.js,SoundManager2.js,CSS3 Animations
Ken - caman.js,SoundManager2.js,CSS3 Animations
Design pattern builder 20131115
Design pattern builder 20131115
Bcp
Bcp
20121228 jQueryui - dialog - By Drake
20121228 jQueryui - dialog - By Drake
20151120 ian cocos2d js
20151120 ian cocos2d js
Expression 的介紹及應用
Expression 的介紹及應用
Peggy - XPath
Peggy - XPath
Mehr von LearningTech
vim
vim
LearningTech
PostCss
PostCss
LearningTech
ReactJs
ReactJs
LearningTech
Docker
Docker
LearningTech
Semantic ui
Semantic ui
LearningTech
node.js errors
node.js errors
LearningTech
Process control nodejs
Process control nodejs
LearningTech
Expression tree
Expression tree
LearningTech
SQL 效能調校
SQL 效能調校
LearningTech
flexbox report
flexbox report
LearningTech
Vic weekly learning_20160504
Vic weekly learning_20160504
LearningTech
Reflection & activator
Reflection & activator
LearningTech
Peggy markdown
Peggy markdown
LearningTech
Node child process
Node child process
LearningTech
20160415ken.lee
20160415ken.lee
LearningTech
Peggy elasticsearch應用
Peggy elasticsearch應用
LearningTech
Expression tree
Expression tree
LearningTech
Vic weekly learning_20160325
Vic weekly learning_20160325
LearningTech
D3js learning tips
D3js learning tips
LearningTech
git command
git command
LearningTech
Mehr von LearningTech
(20)
vim
vim
PostCss
PostCss
ReactJs
ReactJs
Docker
Docker
Semantic ui
Semantic ui
node.js errors
node.js errors
Process control nodejs
Process control nodejs
Expression tree
Expression tree
SQL 效能調校
SQL 效能調校
flexbox report
flexbox report
Vic weekly learning_20160504
Vic weekly learning_20160504
Reflection & activator
Reflection & activator
Peggy markdown
Peggy markdown
Node child process
Node child process
20160415ken.lee
20160415ken.lee
Peggy elasticsearch應用
Peggy elasticsearch應用
Expression tree
Expression tree
Vic weekly learning_20160325
Vic weekly learning_20160325
D3js learning tips
D3js learning tips
git command
git command
Power shell – scriptblock
1.
PowerShell – ScriptBlock Howard
2013/11/29
2.
Script Block 用 {
…… } 定義 Script Block 將 Script Block 指派給某一變數 $variable = { …… } 透過變數執行 Script Block - & &$variable
3.
Script Block
4.
Script Block -
返回值
5.
Script Block -
返回值 回傳值後,後續的 script 仍會繼續執行 故 $result = 5
6.
Script Block -
返回值 return 使用 return 以結束執行 script block
7.
Script Block -
返回值 array
8.
Script Block –
參數 $args 預設變數 $args,用來取得呼叫 script block 時的參數
9.
Script Block –
參數 param(param1, param2……) 按順序指定參數 缺點:要依參數順序給值 指定參數名稱後給值 指定參數名稱,可以縮寫 名稱需要足夠的長度,才能 視別不同的參數
10.
Script Block –
參數 param – 型別定義、預設值、強制參數
11.
Script Block -
Pipe begin 在 pipe 執行之前會進入此 block process Pipe 的每個 element 都會進此 block $_ 指的是當前物件 end 在 pipe 執行之前會進入此 block
12.
Script Block -
Pipe
13.
Script Block -
Pipe
14.
Reference
Jetzt herunterladen