A problem occurs when using Notepad

Anonymous
2024-02-04T14:27:38+00:00

My Windows 11 system has been in normal use for nearly two years, but today, I suddenly found that my txt file cannot be opened normally with Notepad. Once opened, an error message like the first picture below will appear. It Says I have a dll file error.

So I first ran the "sfc /scannow" command in the terminal and detected that some areas could not be repaired. Then I found out that those areas could be repaired by running the "dism /online /cleanup-image /restorehealth" command. Then I waited for a long time. , after repairing it, I ran "sfc /scannow" and there was no error message. Then I tried to open Notepad, but the above error still appeared. Then I was very confused. Is it a problem with the software itself? So I ran the "Get-AppxPackage Microsoft.WindowsJournal | Remove-AppxPackage" command to uninstall the Notepad software, and then re-downloaded it from the Microsoft Store. After the download was completed, the above error message still appeared. Then I downloaded the dll checking tool and tried to check whether there was a problem with the dll. I found that there was a problem with the following library.

Then I repaired the above software again and found that it still didn't work.

So I tried uninstalling and reinstalling, but it still didn’t work.

I tried downloading everything I might need, as shown below, but it still didn't work and the error still occurred.

So I tried to use the latest feature of Windows 11 "Reinstall" (the one below)

After reinstalling, I excitedly opened Notepad, but an error still occurred, the same error as above.

I'm a little sad because I've spent a day trying to figure this out.

After that, I took a closer look at his path, which is the file "C:\Program Files\WindowsApps\Microsoft.VCLibs.140.00.UWPDesktop_14.0.33519.0_x64__8wekyb3d8bbwe\MSVCP140.dll". I think I deleted him directly, but the system prompted me that I didn't have permission. (And there seems to be a problem with the input board of this community. I can't paste some content into the text box with Ctrl+V. I don't know why. I can copy and paste normally)

Me I'm very confused. I don't know why this problem occurs? At the same time, the "Photos" software on my computer (which comes with Windows 11) cannot be opened normally. As soon as I open it, the photo box will pop up, which is all white, just like below

Then there was a problem with my edge browser. It couldn't open certain PDF files normally. Those files were blank after opening. I don't know why. I can open and display them normally with Google Chrome.

By the way, I suspect that the reason for all this is because I accidentally deleted some files in the C drive the day before yesterday. Because my C drive has started to turn red, I used Lenovo’s own cleaning tool to delete the files in the C drive. Some large text files that don't look important, and some video files that don't look important, and here's what my computer looks like today. Oh my God, I could still use it yesterday!😭😭😭

Well, a lot of questions came up today, thank God for adding some fun to my life!

Windows for home | Windows 11 | Performance and system failures

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

26 answers

Sort by: Most helpful
  1. Anonymous
    2024-09-25T14:45:45+00:00

    I solved it. To put it simply, I need to go to the official website to download Microsoft.VCLibs.140.00.UWPDesktop_14.0. The downloaded version may be different, but it doesn't matter. You can install other versions with administrative privileges and power shell instructions. Finally, the problem is solved by renaming the folder. The permissions required for the renaming process can be solved manually.

    can you elaborate the steps?

    1 person found this answer helpful.
    0 comments No comments