I need to change ~500 .html files to .aspx however I do not know how to do so through Powershell and I have not seen any other feasible way to do so.

Folder location:

\ \site\subsite\subsite\subsite\Shared%20Documents\schemas\Tables


Go to the folder location in Powershell and run this command:

Get-ChildItem *.html | Rename-Item -NewName { $_.Name -replace '\.html','.aspx' }

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.