[pywin32-checkins] pywin32/com/win32comext/shell/demos shellexecuteex.py,NONE,1.1
OLD project page for the Python extensions for Windows
Brought to you by:
mhammond
|
From: Mark H. <mha...@us...> - 2004-07-02 04:17:18
|
Update of /cvsroot/pywin32/pywin32/com/win32comext/shell/demos In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30904 Added Files: shellexecuteex.py Log Message: Simple demo of ShellExecuteEx --- NEW FILE: shellexecuteex.py --- from win32com.shell import shell, shellcon import win32con def ExplorePIDL(): pidl = shell.SHGetSpecialFolderLocation(0, shellcon.CSIDL_DESKTOP) print "The desktop is at", shell.SHGetPathFromIDList(pidl) shell.ShellExecuteEx(fMask=shellcon.SEE_MASK_NOCLOSEPROCESS, nShow=win32con.SW_NORMAL, lpClass="folder", lpVerb="explore", lpIDList=pidl) print "Done!" if __name__=='__main__': ExplorePIDL() |