Create a script to shut down Windows 10

Can you shut down Windows 10 more easily? From Windows Vista onwards, Microsoft changed the way they shut down Windows. They made the classic Windows Shutdown feature less obvious by implementing a dropdown menu with the shutdown button on the s.gear tools Windows 10

Although Windows 10 comes with many ways to close it your, the classic shutdown dialog is accessible only with the help of a hotkey.

Today, we will share with us how to create a shortcut to shutdown Windows 10.

All you need is Notepad or Notepad. Open the app, copy and paste the following text:

 dim objShell set objShell = CreateObject ("shell.application") objshell.ShutdownWindows set objShell = nothing

Now select from Notepad menu File - Save as and type the name of the file. The important thing is to add the extension ".vbs" to the end instead of the regular .txt.

Advice: You can add the file name and extension inside the quotation marks so that the Notebook does not automatically add the ".txt" extension.

Adding the name you want in quotes will save it as .vbs and not as .vbs.txt. For example "iguru.vbs" and not "iguru.vbs.txt".
Now double it to the file you saved and you'll see the good old Windows shutdown window.

How does it work:

It's nothing special. Windows gives users access to a wide list required to run applications and of the operating system.
One of these commands is the above. A Shell COM object that allows you to create the script.

If all of the above are Chinese, you can download the script from the link below.

iGuRu.gr_Script.zip

iGuRu.gr The Best Technology Site in Greecefgns

every publication, directly to your inbox

Join the 2.087 registrants.

Written by giorgos

George still wonders what he's doing here ...

Leave a reply

Your email address is not published. Required fields are mentioned with *

Your message will not be published if:
1. Contains insulting, defamatory, racist, offensive or inappropriate comments.
2. Causes harm to minors.
3. It interferes with the privacy and individual and social rights of other users.
4. Advertises products or services or websites.
5. Contains personal information (address, phone, etc.).