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

23 thoughts on “Kill Open Applications Script

  1. 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.

  2. 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.

  3. 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.

  4. 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

  5. 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!

  6. 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.

  7. 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.

  8. 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.

  9. 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.

  10. 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.

  11. 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.

  12. 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.

Leave a Reply

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