Wednesday, August 13, 2025

Error: Configuration system failed to initialize

C#

Windows Service.


I was never going to fix this one by myself there was no ChatGPT.

The cause was the corruption of the user.config file.

That was located in a folder that I did not even know about:

C:\Windows\system32\config\systemprofile\AppData\Local\<AppName>\<AppName.exe>_Url_<hash>\<version>\user.config


Tuesday, February 18, 2025

Get a list of filenames in a folder, in text format

Windows (Command Prompt)

  1. Open Command Prompt (Win + R, type cmd, press Enter).
  2. Navigate to the folder:
    cd "C:\path\to\your\folder"
  3. Run this command to output filenames to a text file:
    dir /b > filelist.txt
    This will save the filenames (without details) into filelist.txt in the same folder.