Script Collection
WMI
Find out My Documents folder | Find out My Documents folder |
|
|
|
A script to find the user’s My Documents folder on Windows with Python
from win32com.shell import shell df = shell.SHGetDesktopFolder() pidl = df.ParseDisplayName(0, None, "::{450d8fba-ad25-11d0-98a8-0800361b1103}")[1] mydocs = shell.SHGetPathFromIDList(pidl) |
|
| Last Updated ( Tuesday, 09 October 2007 ) |
| < Prev | Next > |
|---|
Hint: For syntax highlighting and correct Python intendation place your code between html tags <pre> and </pre>.