Once there, click File > Open Windows PowerShell, and then click “Open Windows PowerShell.” The quickest way to open a PowerShell window at your desired location is to first open the folder in File Explorer. While we’ll only scratch the surface of naming your files, you can do some really powerful things, including piping cmdlets together to batch replace characters in a filename.
Windows PowerShell is even more powerful and flexible than Command Prompt when it comes to renaming files and folders in a command-line environment. For example, to rename the file “Home Movies.ogv” to “First Birthday.ogv” you would use the following command: ren 'Home Movie.ogv' 'First Birthday.ogv'
To rename a file or folder, you can use the following command-if you’re renaming a folder, just omit the file extension: ren ' current_filename.ext' ' new_filename.ext'Īlthough the quotes aren’t mandatory, they’re required if either of the current or new names has a space in them.