The three rules to remember are:
- Never put off until tomorrow what you can do the day after that
- Green is good
- Guilt is for suckers
Recent Posts:
Append “_v2” to the filename in current and recurse folders: dir -Recurse *.xlsx | Rename-Item -NewName { “$($_.BaseName)_v2$($_.Extension)” } Remove all “_v2” characters from the filename in current and recurse folders: dir -Recurse *.xlsx | Rename-Item -NewName { $_.Name -replace “_v2″,”” } Reduce count of consecutive “_v2” characters from the filename in current and recurse … Continue reading Test run and print RENAME list all of the ,XLSX files in current folder and its subfolders: @FOR /r %i in (*.xlsx) do @ECHO @REN “%i” “%~ni_v2%~xi” Run and rename all of the ,XLSX files in current folder and its subfolders: @FOR /r %i in (*.xlsx) do @REN “%i” “%~ni_v2%~xi” Sometimes, especially after a Domain migration, old GPOs remain cached on a client computer. To remove those cached GPO files follow these steps:
PowerShell batch rename files
MS DOS FOR Loop
Clear “local cached” GPO settings
Go to Posts page…