add new chinese translations
This commit is contained in:
29
pages.zh/windows/invoke-item.md
Normal file
29
pages.zh/windows/invoke-item.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# Invoke-Item
|
||||
|
||||
> 在相应的默认程序中打开文件。
|
||||
> 注意:此命令只能通过 PowerShell 使用。
|
||||
> 更多信息:<https://learn.microsoft.com/powershell/module/microsoft.powershell.management/invoke-item>。
|
||||
|
||||
- 在其默认程序中打开文件:
|
||||
|
||||
`Invoke-Item -Path {{path\to\file}}`
|
||||
|
||||
- 打开目录中的所有文件:
|
||||
|
||||
`Invoke-Item -Path {{path\to\directory}}\*`
|
||||
|
||||
- 打开目录中的所有 PNG 文件:
|
||||
|
||||
`Invoke-Item -Path {{path\to\directory}}\*.png`
|
||||
|
||||
- 打开包含特定关键字的目录中的所有文件:
|
||||
|
||||
`Invoke-Item -Path {{path\to\directory}}\* -Include {{*keyword*}}`
|
||||
|
||||
- 打开目录中的所有文件,排除包含特定关键字的文件:
|
||||
|
||||
`Invoke-Item -Path {{path\to\directory}}\* -Exclude {{*keyword*}}`
|
||||
|
||||
- 执行干运行以确定通过 `Invoke-Item` 将打开的目录中的文件:
|
||||
|
||||
`Invoke-Item -Path {{path\to\directory}}\* -WhatIf`
|
Reference in New Issue
Block a user