Guest User

Untitled

a guest
Nov 20th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. $Path = "C:\123\"
  2. $Dirs = Get-ChildItem -Path $Path
  3. ForEach ($Dir in $Dirs) {$SubDirs = Get-ChildItem $Dir.PSPath | Remove-Item -Force -Recurse -ErrorAction SilentlyContinue}
Add Comment
Please, Sign In to add comment