Renaming Sequenced Files in PowerShell – part 2

Since last month, I’ve made a small change to the way I rename the files produced by my scanner. I wrote the following short function: function nuname ($n) { [void]($n -match “Page(\d+)_(\d+)”) return “Page” + [string]([int]$matches[1] + [int]$matches[2]) + “.png” } And now, instead of naming files “Page ###”, I simply export them from the […]