I am trying to rename every file that I have in a directory with an extra value based on the current directory list, so
------------------------- |-------------------------| | | B1S1A800.ext | | | B100M803.ext | | | B100N807.ext | | | B101S800.ext | | | B102S803.ext | -------------------------
Instead, it would look:
------------------------- |-------------------------| | | 1.ext | | | 2.ext | | | 3.ext | | | 4.ext | | | 5.ext | -------------------------
How can this be achieved in PowerShell?
source share