This article is a mirror article of machine translation, please click here to jump to the original article.

View: 1|Reply: 0

PowerShell folder delete command

[Copy link]
Posted on39 seconds ago | | |
Requirement: On Windows, use cmd to call PowerShell to delete folders. Because the rmdir command under cmd is too difficult to use, PowerShell is used to delete folders.

The PowerShell delete command is as follows:
The command to delete folders using cmd to call PowerShell is as follows:
Add the -ErrorAction SilentlyContinue parameter,When the file doesn't exist, errors won't occur

Document reference:The hyperlink login is visible.




Previous:.NET/C# batch convert HEIC format to JPG format [with software + source code]
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com