Friday, June 5, 2009

Bringing Up the Shutdown Dialog Box

Here is a small script that can bring the Shutdown Dialog Box. Open notepad and copy paste the below line and save it as .js (Extension must be .js)

(new ActiveXObject("Shell.Application")).ShutdownWindows();

Now double clicking on the file is same as clicking on Turn Off Computer in the Start Menu

No comments:

Post a Comment

Hey Guys! Thanks for visiting my blog. Hope you enjoy reading. Just leave your comments if you think this post is a worth readable! Your valuable comments are always welcomed. Please don't spam! and No abusive language would be tolerated. I would moderate your feedback and then it would be published. If you have any query I will try to give feedback as soon as possible.