Created
December 1, 2016 01:16
-
-
Save jangeador/6a58cc5f2171690c9e2d664c8b2d42f9 to your computer and use it in GitHub Desktop.
Rename the "My Documents" folder to "Documents"
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Get-ChildItem -Directory -Recurse | where-object { $_.Name -like "My Documents" } | Rename-Item -newname { $_.name -replace "My Documents", "Documents" } -force |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment