|
-
Jan 31st, 2024, 01:13 PM
#1
Thread Starter
New Member
VB.NET Application Process Name in Task Manager
Hi,
I have an app that launches multiple instances of another executable. Each instance of that executable processes a separate case. I would like to change the process name that shows in Task Manager to show which case each instance of that executable is working on. Is there a way in VB.net to change the process name at run-time?
Thanks.
-
Jan 31st, 2024, 01:38 PM
#2
Re: VB.NET Application Process Name in Task Manager
-
Jan 31st, 2024, 01:39 PM
#3
Re: VB.NET Application Process Name in Task Manager
 Originally Posted by TommyVIO
Hi,
I have an app that launches multiple instances of another executable. Each instance of that executable processes a separate case. I would like to change the process name that shows in Task Manager to show which case each instance of that executable is working on. Is there a way in VB.net to change the process name at run-time?
Thanks.
Why not use the program that launched??? the executables as a monitor? Show the code that does the launching. Please.
-
Jan 31st, 2024, 03:18 PM
#4
Thread Starter
New Member
Re: VB.NET Application Process Name in Task Manager
 Originally Posted by dbasnett
Why not use the program that launched??? the executables as a monitor? Show the code that does the launching. Please.
Hi, thanks for replying.
The main app that launches these already monitors the processes. However, it would still help a lot to identify the specific processes in case i'd like to End Task to a specific one.
It's kind of frustrating that something so simple wouldn't be available in VB.net. I guess there's a reason why this can't be done, but there's still a way to do it using API, it's just complicated.
-
Jan 31st, 2024, 03:38 PM
#5
Thread Starter
New Member
Re: VB.NET Application Process Name in Task Manager
Since I am realizing that there's no way to change the process name that shows in Task Manager, I came up with a different idea...
Many apps that allow to open files (such as Notepad) show up in the Task Manager as "Filename.txt - Notepad". So maybe I can use this method to differentiate the multiple instances of the exe that i'm running.
Anyone know how to do that?
Thanks in advance.
-
Feb 1st, 2024, 09:38 AM
#6
Re: VB.NET Application Process Name in Task Manager
 Originally Posted by TommyVIO
Hi, thanks for replying.
The main app that launches these already monitors the processes. However, it would still help a lot to identify the specific processes in case i'd like to End Task to a specific one.
It's kind of frustrating that something so simple wouldn't be available in VB.net. I guess there's a reason why this can't be done, but there's still a way to do it using API, it's just complicated.
Since you didn't show code I'll guess that you are using Process.Start and storing the Process. Each process has an ID. Using Resource Monitor you can see each process and it's ID.
-
Feb 1st, 2024, 10:50 AM
#7
Thread Starter
New Member
Re: VB.NET Application Process Name in Task Manager
 Originally Posted by dbasnett
Since you didn't show code I'll guess that you are using Process.Start and storing the Process. Each process has an ID. Using Resource Monitor you can see each process and it's ID.
Actually, I converted this APP from VB6 to VB.net recently and it was using the "Shell()" to launch the EXEs, so I just left it like that. However, you just gave me a great idea. I will modify my code to use the process.start to have the process ID of each one of them. And this way I can also kill any of them directly through the main app.
This way, I won't need the Task Manager at all.
Thank you for trying!
Last edited by TommyVIO; Feb 1st, 2024 at 10:52 AM.
Reason: Corrected mistake.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|