Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Find The "My Documents" Folder On Windows

DZone's Guide to

Find The "My Documents" Folder On Windows

·
Free Resource

from win32com.shell import shell
df = shell.SHGetDesktopFolder()
pidl = df.ParseDisplayName(0, None,  
    "::{450d8fba-ad25-11d0-98a8-0800361b1103}")[1]
mydocs = shell.SHGetPathFromIDList(pidl)

Copied from Kevin Dangoor's blog here
http://www.blueskyonmars.com/2005/08/05/finding-a-users-my-documents-folder-on-windows/
Topics:

Opinions expressed by DZone contributors are their own.

THE DZONE NEWSLETTER

Dev Resources & Solutions Straight to Your Inbox

Thanks for subscribing!

Awesome! Check your inbox to verify your email so you can start receiving the latest in tech news and resources.

X

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}