Funktionierender Prototyp des Serious Games zur Vermittlung von Wissen zu Software-Engineering-Arbeitsmodellen.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

shellexecuteex.py 470B

1 year ago
12345678910111213141516171819
  1. import win32con
  2. from win32com.shell import shell, shellcon
  3. def ExplorePIDL():
  4. pidl = shell.SHGetSpecialFolderLocation(0, shellcon.CSIDL_DESKTOP)
  5. print("The desktop is at", shell.SHGetPathFromIDList(pidl))
  6. shell.ShellExecuteEx(
  7. fMask=shellcon.SEE_MASK_NOCLOSEPROCESS,
  8. nShow=win32con.SW_NORMAL,
  9. lpClass="folder",
  10. lpVerb="explore",
  11. lpIDList=pidl,
  12. )
  13. print("Done!")
  14. if __name__ == "__main__":
  15. ExplorePIDL()