1 Star 0 Fork 0

jason.w.wei/PSAppDeployToolkit

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
Remove-File.md 1.74 KB
一键复制 编辑 原始数据 按行查看 历史

Remove-File

SYNOPSIS

Removes one or more items from a given path on the filesystem.

SYNTAX

Remove-File -Path <String> [-Recurse] [-ContinueOnError <Boolean>] [<CommonParameters>]

Remove-File -LiteralPath [-Recurse] [-ContinueOnError ] []

DESCRIPTION

Removes one or more items from a given path on the filesystem.

PARAMETERS

-Path <String>

Specifies the path on the filesystem to be resolved. The value of Path will accept wildcards. Will accept an array of values.

-LiteralPath <String>

Specifies the path on the filesystem to be resolved. The value of LiteralPath is used exactly as it is typed; no characters are interpreted as wildcards. Will accept an array of values.

-Recurse [<SwitchParameter>]

Deletes the files in the specified location(s) and in all child items of the location(s).

-ContinueOnError <Boolean>

Continue if an error is encountered. Default is: $true.

This cmdlet supports the common parameters: Verbose, Debug, ErrorAction, ErrorVariable, WarningAction, WarningVariable, OutBuffer, PipelineVariable, and OutVariable. For more information, see about_CommonParameters.

-------------------------- EXAMPLE 1 --------------------------

PS C:>Remove-File -Path 'C:\Windows\Downloaded Program Files\Temp.inf'

-------------------------- EXAMPLE 2 --------------------------

PS C:>Remove-File -LiteralPath 'C:\Windows\Downloaded Program Files' -Recurse

REMARKS

To see the examples, type: Get-Help Remove-File -Examples

For more information, type: Get-Help Remove-File -Detailed

For technical information, type: Get-Help Remove-File -Full

For online help, type: Get-Help Remove-File -Online

Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PowerShell
1
https://gitee.com/jason.w.wei/PSAppDeployToolkit.git
git@gitee.com:jason.w.wei/PSAppDeployToolkit.git
jason.w.wei
PSAppDeployToolkit
PSAppDeployToolkit
master

搜索帮助