microsoft / microsoft/PowerToys

PowerRename exits when it reaches an html file with connected folder

Open
#47,005 0 comments 1 reaction 2 assignees Claimed by @moooyo View on GitHub
Issue-Bug Needs-Triage Product-PowerRename
Dominant language
C
Stars
139k
Forks
8.6k
PR merge metrics
PR metrics pending

Description

### Microsoft PowerToys version

0.98.1

### Installation method

PowerToys auto-update

### Area(s) with issue?

PowerRename

### Steps to reproduce

Given a folder with files `a_page.html`, `b_page.html`, and `c_page.html`, plus a folder `b_page_files`.
Image

Use PowerRename to try to add `_new` to the ends of the filenames.
Image

### ✔️ Expected Behavior

PowerRename should rename all the files it can and give you a error message about the ones it didn't rename.

Context:
It's normal for Explorer to pop up a warning when you try to manually rename an `htm`/`html` file with a "connected" folder (one with the same filename, but ending in `_pages` instead of `.htm`/`.html`.
Image

If possible, PowerRename should give the user the option to rename such files anyway.

### ❌ Actual Behavior

PowerRename thinks it succeeded.
Image

But it actually stopped renaming files once it got to `b_page.html`.
Image

Here's the portion of the PowerRename log file from my bug recreation.
[\[2026-04-13 200430.844638\] \[p-5324\].txt](https://github.com/user-attachments/files/26693151/2026-04-13.200430.844638.p-5324.txt)

### Upload Bug Report ZIP-file

_No response_

### Additional Information

Windows 11 Pro, version 25H2
.NET version 8.0.11

### Other Software

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.