美文网首页
Windows10利用PowerShell删除异常文件

Windows10利用PowerShell删除异常文件

作者: 0oSco0 | 来源:发表于2019-03-19 15:03 被阅读0次

Example 3: Delete hidden, read-only files

This command deletes a file that is bothhiddenandread-only.It uses thePathparameter to specify the file.It uses theForceparameter to delete it.WithoutForce, you cannot deleteread-onlyorhiddenfiles.

Remove-Item -Path C:\Test\hidden-RO-file.txt -Force

Remove-Item [-Path] <String[]>

      [-Filter <String>]

      [-Include <String[]>]

      [-Exclude <String[]>]

      [-Recurse]

      [-Force]

      [-Credential <PSCredential>]

      [-WhatIf]

      [-Confirm]

      [-Stream <String[]>]

      [<CommonParameters>]

https://docs.microsoft.com/zh-cn/powershell/module/microsoft.powershell.management/remove-item?view=powershell-6

相关文章

网友评论

      本文标题:Windows10利用PowerShell删除异常文件

      本文链接:https://www.haomeiwen.com/subject/bgwsjxtx.html