Description
The one-liners below can be used to recursively delete all .txt files in a given directory and all its sub-directories.
Source Code
Get-ChildItem -include "*.txt" -recur remove-itemor
Get-ChildItem -rec -filter *.txt remove-item
PowerShell Scripts Repository
Description
The one-liners below can be used to recursively delete all .txt files in a given directory and all its sub-directories.
Source Code
Get-ChildItem -include "*.txt" -recur remove-item
No comments:
Post a Comment