Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. Get-ChildItem -Path .* -Recurse -File |
  2. Where-Object{$_.Extension -and $_.BaseName -like "*$($_.Extension)"}
  3.  
  4. Get-ChildItem -Path .* -Recurse -File |
  5. Where-Object{$_.Extension -and $_.BaseName -like "*$($_.Extension)"}|
  6. Rename-Item -NewName {$_.BaseName} -WhatIf
  7.  
  8. Get-ChildItem -Path .* -Recurse -File -Exclude "C:Windows" -EA SilentlyContinue|
  9. Where-Object{$_.Extension -and $_.BaseName -like "*$($_.Extension)"}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement