- PowerShell Tutorial
- PowerShell - Home
- PowerShell - Overview
- PowerShell - Environment Setup
- PowerShell - Cmdlets
- PowerShell - Files and Folders
- PowerShell - Dates and Timers
- PowerShell - Files I/O
- PowerShell - Advanced Cmdlets
- PowerShell - Scripting
- PowerShell - Special Variables
- PowerShell - Operators
- PowerShell - Looping
- PowerShell - Conditions
- PowerShell - Array
- PowerShell - Hashtables
- PowerShell - Regex
- PowerShell - Backtick
- PowerShell - Brackets
- PowerShell - Alias
- PowerShell Useful Resources
- PowerShell - Quick Guide
- PowerShell - Useful Resources
- PowerShell - Discussion
Powershell - Invoke-Item Cmdlet
Cmdlet
Invoke-Item cmdlet is used to perform a default action on specified item.
In these example, we're see the Invoke-Item cmdlet in action.
Example
In this example, we'll show a customized message.
Invoke-Item "D:\Temp\test.txt"
Output
You can see text.txt open with notepad as it is invoked by Powershell as default action.
powershell_advanced_cmdlets.htm
Advertisements