SHGetSpecialFolderLocation Question?

kumar kumaran at yahoo.com
Mon Jan 20 09:49:40 EST 2003


The following python call always return "DESKTOP" as my personal
directory, where as it is a directory named "personal". Can some help
me with this?

Python 2.0 (#8, Oct 16 2000, 17:27:58) [MSC 32 bit (Intel)] on win32
Type "copyright", "credits" or "license" for more information.
>>> from win32com.shell import shell, shellcon
>>> IDLList= shell.SHGetSpecialFolderLocation(shellcon.CSIDL_PERSONAL,
0)
>>> print "my_personal_dir =", shell.SHGetPathFromIDList(IDLList)
my_personal_dir = C:\WINNT\Profiles\kumar\DESKTOP
>>>

Thanks
Kumar




More information about the Python-list mailing list