Python Forum
read location of windows libraries
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
read location of windows libraries
#1
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
Reply
#2
Please explain where you feel python fits here.
Also, please show what you have tried so far, and where you are having a problem.
Reply
#3
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
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#4
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 ;-)
Reply
#5
what do you mean by library locations, exactly?
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Read complete windows registry? fredep57 3 900 Mar-15-2023, 08:14 PM
Last Post: buran
  csv.reader(): Limit the number of columns read in Windows Pedroski55 9 5,041 Jan-23-2021, 01:03 AM
Last Post: pjfarley3

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020