Show pageOld revisionsBacklinksFold/unfold allBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== Windows ====== ===== PowerShell ===== ==== Mass Rename ==== === One-liner (safe and explicit) === <code powershell> Get-ChildItem -Filter "D10 *" | Rename-Item -NewName { $_.Name -replace '^D10', 'D8' } </code> **What this does:** * ''Get-ChildItem -Filter "D10 *"'' grabs only files starting with ''D10'' * ''Rename-Item'' renames them * ''-replace '^D10', 'D8''' swaps only the leading D10, not any later occurrences === Dry run (optional but wise) === If you want to preview first, add ''-WhatIf'': <code powershell> Get-ChildItem -Filter "D10 *" | Rename-Item -NewName { $_.Name -replace '^D10', 'D8' } -WhatIf </code> windows/start.txt Last modified: 2026/01/20 12:39by mh