Using Powershell to reverse the sequence numbers in a set of file names
问题 I am new to using PowerShell (and coding for that matter), all I'm trying to do is rename my files). I have 222 .jpg's that are named "REF_10001.jpg" "REF_10002.jpg" "REF_10003.jpg" etc but my problem is that they are in the wrong order, I need to reverse them, for example I need "REF_10001.jpg" --> "REF_10222.jpg" and vice versa. "REF_10222.jpg" --> "REF_10001.jpg" Is there a way to do this? I have been struggling for hours to rename my files properly, just to realize they are in the wrong