In this blog post, I will show you a very simple and handy PowerShell cmdlet that renames a file without using Windows explorer.
Rename-Item
The rename-item cmdlet can rename an existing file name with a new name as shown below.
In my case, I have a file called 25.substring which I will rename to 25.1.substring.ps1
Rename-Item .\25.SubString.ps1 25.1.SubString.ps1
Processing…
Success! You're on the list.
Whoops! There was an error and we couldn't process your subscription. Please reload the page and try again.