- PowerShell 教程
- PowerShell - 主页
- PowerShell - 概述
- PowerShell - 环境设置
- PowerShell - Cmdlet
- PowerShell - 文件和文件夹
- PowerShell - 日期和计时器
- PowerShell - 文件 I/O
- PowerShell - 高级 Cmdlet
- PowerShell - 脚本编写
- PowerShell - 特殊变量
- PowerShell - 运算符
- PowerShell - 循环
- PowerShell - 条件
- PowerShell - 数组
- PowerShell - 哈希表
- PowerShell - 正则表达式
- PowerShell - 反勾号
- PowerShell - 方括号
- PowerShell - 别名
- PowerShell 的有用资源
- PowerShell - 快速指南
- PowerShell - 有用资源
- PowerShell - 讨论
Powershell - Invoke-Item Cmdlet
Cmdlet
Invoke-Item Cmdlet 用于对指定项执行默认操作。
在此示例中,我们将看到 Invoke-Item Cmdlet 的实际应用。
示例
在此示例中,我们将显示一条自定义消息。
Invoke-Item "D:\Temp\test.txt"
输出
可以看到记事本以文本形式打开了 text.txt,这是由 Powershell 作为默认操作调用的。
powershell_advanced_cmdlets.htm
广告