Announcement

Collapse
No announcement yet.

Show Specified Running App Information

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Show Specified Running App Information

    Please use the script to know details about a application that is being run

    Code:
    def ShowRunningApp(appName):
        import os
        proObj = os.popen('TASKLIST /FI "ImageName eq '+appName+'" /FI "STATUS eq running"')
        runApps = proObj.read()
        return runApps
    
    print ShowRunningApp('chrome.exe')
    Sample Output:
    Click image for larger version

Name:	Show Specified Running App Information.PNG
Views:	1
Size:	2.7 KB
ID:	4771

    Last edited by Purushothaman; 11-04-2016, 01:26 PM.
Working...
X