Open Folder in Desktop

vincent wehren vincent at visualtrans.de
Tue Jan 25 15:09:31 EST 2005


Jimmy Retzlaff wrote:
> Kamilche wrote:
> 
<sipped>
> Folders like My Documents, My Pictures, etc. are special and you need to
> determine their actual path before you can open them. The pywin32
> extensions
> (https://sourceforge.net/project/showfiles.php?group_id=78018) include a
> way to get at this:
> 
> from win32com.shell import shellcon, shell
> path = shell.SHGetFolderPath(0, shellcon.CSIDL_MYPICTURES, 0, 0)
> os.startfile(path)
> 
> Google for CSIDL to find the constants to use for other special folders.

Here's the exact link you'll need (warning, long url ahead ;)


http://msdn.microsoft.com/library/default.asp?url=/library/en-us/shellcc/platform/shell/reference/enums/csidl.asp

--

Vincent Wehren





> 
> Jimmy



More information about the Python-list mailing list