[python-win32] path to START MENU folder

Chavez Gutierrez, Freddy fchavez at intercorp.com.pe
Fri Sep 9 16:26:28 CEST 2005


Somewhere I found this code to get the path to the DESKTOP folder:

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

When I execute it, I get this: C:\Documents and Settings\freddy\My
Documents.

That's ok. Now, I want to get the START MENU folder for all users, which is
something like: "C:\Documents and Settings\All Users\Start Menu".

Thanks for your help.

Regards,
Freddy Chavez.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20050909/b4a5ff47/attachment.html


More information about the Python-win32 mailing list