简体   繁体   English

如何使用Powershell按名称删除多个文件夹?

[英]How can I delete multiple folders with by name using Powershell?

I have a list of folders that have to get deleted in a directory and I'm trying to purge them all at once. 我有一个目录列表,这些目录必须在目录中删除,我想一次清除它们。 Looking to be able to delete the folders in a directory based on the list of names 希望能够根据名称列表删除目录中的文件夹

看一下Get-ChildItemRemove-Item cmdlet。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用 powershell 删除具有特定名称的所有文件夹 - How to delete all folders with a specific name using powershell 在PowerShell中复制多个文件夹时,如何更改文件夹的名称? - How to change name of the folders when copying multiple folders in PowerShell? 如何使用 PowerShell 递归删除具有特定名称的文件夹? - How can I recursively delete folder with a specific name with PowerShell? 使用Powershell将单个文件复制到具有相同名称的多个文件夹 - Copy a single file to multiple folders with same name using powershell 使用 Powershell 创建多个文件夹 - Creating multiple folders using Powershell 如何使用 PowerShell 取消和删除队列中的等待构建 - How can I cancel & delete a waiting build in the queue using PowerShell 如何使用PowerShell递归删除具有数字名称的文件夹 - How can I recursively delete folder with numerical names using PowerShell 如何使用Powershell高效查找具有特定名称的文件夹? - How to find folders efficiently with specific name using powershell? 如何使用 c# 或 PowerShell 检查 OneDrive 文件夹中文件/文件夹的状态是否已同步? - How can I check status of files/folders in OneDrive folder whether it is synced or not using c# or PowerShell? 如何使用Powershell获得Azure VM的Loadbalancer名称? - How can I get Loadbalancer Name of azure vm using powershell?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM