| 1. |
Solve : Deleting Specific website/program? |
|
Answer» In one of my batch scripts i want to close a specific page of a website. The problem is when i use 'taskkill' it closes all of the pages. I don't think it's possible to modify PART of an application using the command promt or batch files. I could be wrong, but I doubt it's possible Yeah i don't think so either, I've been looking everywhere and can't find anything :/The utility is called "killtask". It kills a task. In order to create a PROGRAM that could do something unique like that, The program would have to implement it in some way; such as Via a COM accessible object (Word, Excel, etc allow this) or via a command line argument (which is then passed to the existing instance of the program). The reason should be rather clear; From outside a running program, all that application looks like is a process. It's possible to read and write to process memory; but without a detailed map of what is stored where and how it's laid out, that would be useless and bound to corruption. Sometimes the BEST answer to a question is another question. Why? Quote from: Geek-9pm on November 24, 2010, 11:35:50 PM Sometimes the best answer to a question is another question.Definitely. Let me try. Quote Why? Why not?Our resident troll, Billrich/Larrylong whatever the flip he calls himself now, has sent me a ridiculous PM in this regard; clearly he knows that posting on the forum openly is simply going to get him banned again, and so it seems that after circumventing the last ban he's decided instead to merely PM people, and that this will somehow conceal him. Anyway, this is the PM: Quote Kill Yahoo You'll note several interesting things that old Bill overlooks: First, you'll note that his example is using Internet Explorer, which clearly isn't Google chrome. Second, you'll see that he is closing a task based on a window title; clearly he is working under the false assumption that the version of IE in use would be Version 6 or earlier, since after version 7 the display switched to tabs, whereby the title of the window was only for the active tab, and even in the case that the active tab was selected, the entire window would be closed anyway. So yes, Bill's "solution" if we can call it that (personally I'd be more likely to call a bowl of noodles a platypus), would work for his specific little subcase, but not at the scope of the original request*; after all, with IE6 and earlier each window did indeed represent an entire process, so even if we were in a whimsical fairy land where google chrome was Internet Explorer 6 (and who wants to Live in that world? Only CBMatt, probably), it's not really closing part of a process as the original post requests. Therefore my previous post still stands; unless a program provides a command-line accessible interface and provides the necessary plumbing to perform a specific task (as noted, Chrome would need to accept an argument on the command line and then be able to pipe (via DDE or OLE or some other cross-process thing) the data to the original Chrome process, which could act accordingly and close the tab; However, Since chrome doesn't provide this option (and shall I note that firefox DOES indeed have a cmd line argument that allows you to close a tab in an open browser?) It's not possible. A third-party program could of course be used to do this task; there are python scripts designed to open pages on existing chrome processes, so I imagine it's possible to use the same plumbing to close them. This is all redundant to the context of the original post, and only serves as delicious trollfood for our dear friend Billrich (and I say that with some irony) who takes delight in the various ancillary snacks he has been given as a result of his unsolicited PMS. * This is not an uncommon trait that he exhibits; I wouldn't be surprised if somebody asked what home remedies people had for colds and he started to list off the ingredients on a ATHLETES foot medication Quote from: BC_Programmer on November 25, 2010, 07:53:53 PM Hey, does that work? I just ran out of my cold medicine, but have some stuff for my feet. Quote from: BC_Programmer on November 25, 2010, 07:53:53 PM
Well this post is a little bit confusing. All i want is a yes or no answer :/ ...but anyway lemme point out your forgot a closing parenthesis xP The bolded are is where it starts but never finishes O.o ( sorry off-topic)Is shanked one of Billrich's stooge IDs? Quote from: shanked on November 25, 2010, 11:44:37 PM Well this post is a little bit confusing. All i want is a yes or no answer :/ ...but anyway lemme point out your forgot a closing parenthesis xP The bolded are is where it starts but never finishes O.o ( sorry off-topic) Yeah I do that sometimes. I use parentheses far too often in my text in any case. EDIT: hmm, maybe I should become a LISP programmer? Quote from: BC_Programmer on November 26, 2010, 12:44:09 AM maybe I should become a LISP programmer? Yeth. Thatth a good idea. |
|