Skip to main content
17 events
when toggle format what by license comment
May 8, 2015 at 18:40 vote accept CommunityBot
Apr 29, 2015 at 18:04 answer added GuitarPicker timeline score: 2
Apr 29, 2015 at 7:51 answer added Zachary Turner timeline score: 4
Apr 29, 2015 at 7:36 history edited user441228 CC BY-SA 3.0
deleted 230 characters in body; edited tags; edited title
Apr 29, 2015 at 7:30 comment added user441228 Ok @Scott By Installation I meant that the application leaves traces (registery etc.) which the portable dont. I thought this make a difference between installed and portable processes of an application. which now I think dont.
Apr 27, 2015 at 5:00 comment added Karan @MrKlKl: Here you go, see the batch file in my edited answer below. Also as Scott mentioned above you really should edit the question title, tags and probably the body as well to remove all references to setting PIDs.
Apr 27, 2015 at 4:12 comment added Scott - Слава Україні Also, (1) You might want to tag your question with [windows] (ideally, specifying the exact version that you're using) and [batch], because, until you edited the question, there was no way to tell that you weren't talking about Unix.  Also, (2) I don't understand what you mean by "I have an application installed on my computer ... and I have the portable version of that too."  If that's important to your question, you might want to reword it.
Apr 27, 2015 at 4:11 comment added Scott - Слава Україні Perhaps the question you should be asking is "When I start an application (e.g., from a batch file), how can the batch script learn the PID of the application process, so it can use it later to kill the process?"  (The answer might be: run tasklist with output to a file before and after starting the application, then compare the output files to see what PID is in the second file but not the first.)  Or perhaps, "Given multiple Windows processes, how can I distinguish among them (e.g., by start time or other discriminators)?"
Apr 26, 2015 at 21:30 history edited user441228 CC BY-SA 3.0
added 411 characters in body
Apr 26, 2015 at 21:26 comment added user441228 @Karan Lets make this interesting. Assume I want to do this from a batch file (automate things and schedule them) and I dont know what is the pid of that process (and again there are multiple instances with same names).
Apr 25, 2015 at 21:26 answer added Felype timeline score: 0
Apr 25, 2015 at 21:18 comment added Karan You are asking the wrong question. Since the instances already have different PIDs (as you've yourself stated), there's no need to change these PIDs when you just want to kill certain instances. See my answer below.
Apr 25, 2015 at 21:14 comment added Felype That is not possible under windows (and i don't think its possible under linux and unix either), but you can get and kill windows filtering by process name, main window handler, window class and some other methods.
Apr 25, 2015 at 21:08 answer added Jamie Hanrahan timeline score: 0
Apr 25, 2015 at 21:08 answer added Karan timeline score: 3
Apr 25, 2015 at 20:57 review First posts
Apr 25, 2015 at 22:45
Apr 25, 2015 at 20:52 history asked user441228 CC BY-SA 3.0