Зайчик пише

Tips, tricks, cheatsheets


Project maintained by iamzaychik Hosted on GitHub Pages — Theme by mattgraham

Windows Batch rename with template

2019-04-15


Execute in powershell:

Get-ChildItem "D:\Music" -Recurse | 
   Where-Object {$_.Name -match '  '} | 
     Rename-Item -NewName { $_.Name -replace '  ',' ' } -WhatIf