Kill Open Applications Script

I tend to put my laptop to “sleep” at the end of the office day but often fire it back up at home. One bad habit of mine is having too many apps running at the same time (thanks to UltraMon the problem is now worse).  Putting a PC into “sleep” tries to commit things to RAM and if it runs out (it does) then to hard disk.  “Awakening” causes it to push things off of the hard disk and back into memory.  This takes a long time.  My solution was a simple VBS script to transverse and kill the most common applications right before “sleep”.  I’ve tied this to a slickrun command “kill” to make it easier to run.  Script below, enjoy!

 

strComputer = "."

dim oKillThese
oKillThese = Array("firefox.exe", "iexplorer.exe", "safari.exe", "TweetDeck.exe", "OUTLOOK.EXE", "chrome.exe", "notepad++.exe", "iTunes.exe", "javaw.exe", "cmd.exe", "Moe.exe", "Surround SCM Client.exe", "devenv.exe", "SqlWb.exe", "Navicat.exe")

For Each x in oKillThese

Set objWMIService = GetObject("winmgmts:" _
    & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colProcessList = objWMIService.ExecQuery _
    ("SELECT * FROM Win32_Process WHERE Name = ‘" & x & "’")
For Each objProcess in colProcessList
    objProcess.Terminate()
Next

Next

Tim

A .NET, PHP, Marketing Guru authority, at least I hope I am. Reach me at tboland@gmail.com

21 thoughts on “Kill Open Applications Script

  1. Jonathan says:

    As if one browser isn’t enough…you expect to [possibly] have four open. Multitasking?

  2. Tim says:

    I am an internet engineer after all

  3. here you cango for the link to steam wallet codes online with simple steps .

  4. click here to get online generators of codes and redeem them at the store here and get them

  5. An organization cash advance is lent against any future receivables through your organization Mastercard. This is the best methodology to imbue cash into your company.A business can’t make due without stores. payday loans chicago

  6. cash advance says:

    The specific issues included in title credits ought to in like way be inspected, especially the acquisitions related to over the top rates of redirections. Borrowers must pick in like way if the sincerity of the need is sufficient basic to agree to such higher rates of redirection.

  7. The borrowers can analyze for the merchant of the motorbike to get a appropriate arrangement. Aback the bulk of the apparatus is assured by the borrower and the merchant is chosen, at absolutely that point if he booty up an assay through the online.

  8. On the off unusual that you wind up in an unsuccessful mischance while the activity is on-going, it is a canny settlement to formal speech about with the coffer or convenience authority befitting in apperception the end desire to expect of a pleasant comprehension.

  9. That is a really good tip particularly to those fresh to the blogosphere.
    Simple but very accurate info… Thank you for sharing this one.

    A must read article!
    Also visit my web blog Obat Molluscum Contagiosum

  10. With a specific completed target to be possessed all the necessary qualities for a payday credit you must be more than 18 years of age and in work with a take home wage of at any rate £750 reliably. You should also have a record with a liberal charge card.

  11. softpedia says:

    I know where I’m going and I know the truth, and I don’t have to be what you want me to be. I’m free to be what I want.Thankyou i really love it

  12. nona kate says:

    Excellent blog you have here but I was curious about if you knew of any community forums that cover the same topics talked about in this article? I’d really like to be a part of online community where I can get advice from other experienced individuals that share the same interest. If you have any suggestions, please let me know. Appreciate it!

  13. alex says:

    Thats a good’ article, i usually amazed with’ this thing, i asked myself about this opinion, I wish You’ll a better articles that can make another people impressive..don’t make the article feel rigit and isn’t interesting and poor, i like to read this’ article and i think this is “good”.thank you’ m’y brother.

  14. You don’t have to tell the payday credit supplier what you require the payday advance for. You can use the money for whatever you require. You may oblige trade for spendable hitter an emergency which can not sit tight until payday for event; emergency recouping or dental treatment, to settle a bill quickly, extra smoldering through trade voyaging or in for money scorn of for an astute weekend away.

  15. Due to the acutely concise attributes of payday loans, the absorption and APR can assume actual acute aback compared to a acceptable claimed or signature accommodation that is commonly beforehand out over a year or more.

  16. Since bankers and banking institutions do not accede bad acclaim borrowers as reliable applicants for accouterment any loan, bad acclaim borrowers may acquisition it absolutely absolute difficult to get the adapted accommodation after any difficult. It absolutely accurate that continued appellation loans are not that boxy to find, as with them the borrower gets acceptable time to accord the amount. On the adverse abbreviate appellation loans are boxy to redeem, as for accouterment them, all lender assay every detail absolute carefully.

  17. Cash Advance says:

    If you feel you cannot acknowledgment the accommodation aural the assured time, ask for a cessation but don’t accomplish it a habit. Whatever the case maybe, don’t let your cheque animation as it can accept acknowledged repercussions besides ample backward fee and bouncing accuse will be levied aloft you by the lender and the coffer both.

  18. Thanks for your sharing. Your article is very useful, it gives me more understanding. Please allow me to share a few:
    baixar whatsapp gratisScore HeroPhoto Grid

  19. Lauren says:

    Thanks for providing here script for kill open applications. A brilliant tips for those all people who have a bad habit of running too many apps at the same time. My colleague have also this habit who are helping students by providing academic writing services or career guidance or help write a CV at CV Folks to those passionate students who wants to get a job at best company of the area on basis of their high skills and ability. And I would like to share it with the straight away to my colleague and provide solution of how to kill open application.

  20. Really its a amazing article that i had ever read. I hope it will help a lot for all the readers. Thank you so much for this amazing posts and please keep update like this excellent article.

  21. Cash Advance says:

    Many registration booth clients are individuals with dynamic financial balances who just love the accommodation offered by the booths.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>