jonaskohl / CapsLockIndicator

A small utility that indicates the state of the Num lock, Caps lock and Scroll lock key.
https://cli.jonaskohl.de/
Apache License 2.0
336 stars 41 forks source link

How to get the name of the parent folder of the configuration file "user.config"? #66

Closed mingweme closed 3 years ago

mingweme commented 3 years ago

I really like your software, so I want to use it on another computer, but the parent folder name where the config file is located looks random, how can I get the parent folder name of the config file "user.config"? My folder name: C:\Users\Shann\AppData\Local\Jonas_Kohl\CLIv3-3.8.0.1.exe_Url_poqnwfpptl5utwj4a44jvxohx55fly0l\3.8.0.1\user.config md5 query result: md5(poqnwfpptl5utwj4a44jvxohx55fly0l,32) = 6b5843de8bfce66639411bcb03314904 md5(poqnwfpptl5utwj4a44jvxohx55fly0l,16) = 8bfce66639411bcb Thanks.

jonaskohl commented 3 years ago

I'm using the default .NET settings system. This generates the path based on the hash of the application. This StackOverflow answer might send you in the right direction of determining the settings path.

mingweme commented 3 years ago

I'm using the default .NET settings system. This generates the path based on the hash of the application. This StackOverflow answer might send you in the right direction of determining the settings path.

Thanks brother, I have to study the problem.