Python Forum
read location of windows libraries - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: read location of windows libraries (/thread-25022.html)



read location of windows libraries - ChrisRegenplatz - Mar-15-2020

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


RE: read location of windows libraries - Larz60+ - Mar-16-2020

Please explain where you feel python fits here.
Also, please show what you have tried so far, and where you are having a problem.


RE: read location of windows libraries - buran - Mar-16-2020

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


RE: read location of windows libraries - ChrisRegenplatz - Mar-16-2020

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 ;-)


RE: read location of windows libraries - buran - Mar-16-2020

what do you mean by library locations, exactly?