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
_______________________________________________ Python-win32 mailing list Python-win32@python.org http://mail.python.org/mailman/listinfo/python-win32