I have made an VB6 application that dont use any forms that is compiled to an .EXE file. I will run more instances of this application at the same time and wants to be able to stop the right one. Normally I cant see wich one is wich in "process explorer". Is it possible for me to set the name of the process when I start my application?
I can see that in the .VBP file there is a part: Title="SendApp" that defines the name of the process.
It would help me a lot if I was able to terminate the right one by being able to see what one is the one to terminate.
SendApp1
SendApp2
SendApp3
Sorry for bad english =)
Thanks in advance
I don't think there's absolutely way to tell apart the applications by their image name only (PID will help, though) and I don't think it's modifiable on runtime either.... sorry :/
Thanks for your reply. Anyone else that knows if what I want to do is possible or not?
You could write the app as ProcName____ or whatever and then write a loader that modifies the executable with a UID or something.
http://www.microsoft.com/technet/sysinternals/Utilities/ProcessExplorer.mspx
procexp will show you when they were started, along with a ton of other information if you pick Properties from the context menu.
Quote from: rabbit on August 10, 2007, 06:55 AM
You could write the app as ProcName____ or whatever and then write a loader that modifies the executable with a UID or something.
Nice solution, Rabbit. It is not supposed to do it another "cleaner" way via API or such? I try this solution.
Raylu, I try that app. Even though it doesent solve my problem.
Thank you for helping!
Now my little loader is complete and working! =) Thanks for the help!