Auto-detect user folders paths
See original GitHub issueUser folders paths are stored in Windows Registry.
You can find them there : HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders
Folder | Windows Registry Key |
---|---|
Desktop | Desktop |
Downloads | {374DE290-123F-4565-9164-39C4925E467B} |
Documents | Personal |
Pictures | My Pictures |
Music | My Music |
Videos | My Video |
(Source)
You should be able to get these by using Microsoft.Win32.Registry.GetValue.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
automatically select correct user folder on different machines
I would do this as follows: import os. Get current working directory: work_dir = os.getcwd(). You likely only get C:\Users\myname when you ...
Read more >Correct App detection rule File Path for User Folder
Hi Guys, I have deployed a file to the user's folder, but I don't think I have the correct syntax for the "Current...
Read more >Automatic creation of user folders for home, roaming profile ...
Automatic creation of user folders for home, roaming profile and redirected folders. · 1. Click Offline Settings on Windows 2000 or Caching on ......
Read more >Active Directory Home Folder Automatic Creation & Mapping
Automatically create a home folder and map a drive letter for Microsoft Active Directory using the %username% variable.
Read more >windows 7 - Extract archive here, autodetect subfolder
Remove redundant folders from extraction path ... this option removes the top level folder based on archive name from extraction path.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I believe we are already detecting user paths, the only one that is not using that method at moment is the downloads folder, thank you for the registry key.
@KaKi87 This is fixed for the v0.7 release. Thank you for your patience.