Queste non sono altre che le mie note personali su Powershell di Windows condivise per chi ne potrebbe aver bisogno.
CANCELLA FILE
Cancella tutti i file presenti nella cartella Owncloud e sotto cartella.
Get-ChildItem รจ come una dir /s. Il suo output viene rediretto al comado Remove-Item.
PS C:\ownCloud> Get-ChildItem -Path "C:\ownCloud" -Filter "*(conflicted copy 202*.lnk" -Recurse | Remove-Item -Force
PS C:\ownCloud> Get-ChildItem -Path "C:\ownCloud" -Filter "__pycache__" -Recurse | Remove-Item -Force -Recurse
