[python-win32] path to START MENU folder

Peter Jessop pjessop at gmail.com
Fri Sep 9 18:21:10 CEST 2005


Hola Freddy

Another way of doing it would be to use the WScript.Shell object:

import win32com.client
objShell = win32com.client.Dispatch("WScript.Shell")
allUserDocs = objShell.SpecialFolders("AllUsersDesktop")
print allUserDocs

similarly you can use the following to obtain access to other special 
folders:

AllUsersDesktop,AllUsersStartMenu,AllUsersPrograms,AllUsersStartup 
Desktop,Favorites,Fonts,MyDocuments,NetHood,PrintHood,Recent,SendTo 
StartMenu,Startup & Templates 

Saludos
 
Peter Jessop
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/python-win32/attachments/20050909/11f64d70/attachment.html


More information about the Python-win32 mailing list