Python Forum

Full Version: read location of windows libraries
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all,

in windows you can include a folder to windows libraries. And windows is then showing the folder inside an existing library or a new one.

I now want to find out, which folders are behind that libraries.

e.g. default for Library / documents is c:\users\<username>, but I also want to read the user defined folders, which have been added to default setting

An example use case would be, to backup all folders defined in windows libraries (like version history is doing)

Tried to google that problem, but searching for libraries does not really narrow the results ;-)

thanks for reading and have fun
Please explain where you feel python fits here.
Also, please show what you have tried so far, and where you are having a problem.
check if winshell is what you want? It's a wrapper around win32 (pywin32), so you can use directly
check also https://stackoverflow.com/q/3858851/4046632r
winshell goes in the right direction, but does not include the library locations. Ok, will try with pywin32, looks like a reasonable monster, but OK.. Never had a look at that API, so will take it's time to find out where to search for. Will also try to find location in powershell and / or registry. Hoped that wouldn't be needed ;-)
what do you mean by library locations, exactly?