5

When I run the taskmanager, the process name for all Python scripts are the same : python.exe. It makes it difficult to know which is which.

How to change the process name displayed by Windows task manager?

Note: this question doesn't seem to work for Windows.

enter image description here

Community
  • 1
  • 1
Basj
  • 41,386
  • 99
  • 383
  • 673
  • Have you tried launching it with a batch file: http://stackoverflow.com/q/13473372/3001761 – jonrsharpe Jul 17 '16 at 10:13
  • you might looking for command line arguments in addition; http://serverfault.com/q/323795/273019 – Jossef Harush Kadouri Jul 17 '16 at 10:13
  • @jonrsharpe : with a batch, 1) it creates a `cmd.exe` process in the task manager, it's not more explicit that "python.exe" if you have multiple instances 2) there's still an additional `python.exe` in the task manager that appears – Basj Jul 17 '16 at 10:17
  • 1
    Well then maybe you just can't. – jonrsharpe Jul 17 '16 at 10:18
  • There's a fairly length post on this topic with both windows and linux that I found useful http://stackoverflow.com/questions/564695/is-there-a-way-to-change-effective-process-name-in-python but most ways seem like a work around then less you are using Linux and even then... – D3181 Jul 17 '16 at 10:38
  • @Dean219 which precise answer do you think will help for Windows? – Basj Jul 17 '16 at 10:39
  • https://github.com/dvarrazzo/py-setproctitle – dsgdfg Jul 17 '16 at 11:32
  • There's a few ways for windows a good one was outlined here but included the use of exe maker http://stackoverflow.com/questions/2155042/change-process-name-of-python-script – D3181 Jul 17 '16 at 11:36
  • @dsgdfg I just tried, doesn't work for windows, the title is still "python.exe" in the classic windows task manager. – Basj Jul 17 '16 at 12:11

0 Answers0