Win7 system using JS script to achieve the shutdown function tutorial

  
1. Press "Win+R" to open the "Run" window, enter the "notepad" command and press Enter to open Notepad;
2, open the Notepad Type the following command (new ActiveXObject("Shell.Application")).ShutdownWindows() in the documentation.

3, click on "File" - "Save As", save the file type as the default file name to JS suffix. For example, shut down .js and save the path to the desktop.

4, see a shutdown icon on the desktop, "Create Shortcut" in the icon with the right mouse button. View the "Shutdown" of another shortcut on the desktop;
5. On the shortcut icon created by it, right-click on the icon and select "Properties", then in the pop-up properties window, switch to the shortcut. In the tab, type your shortcut at the shortcut.
At this point, enter the shortcut you just typed on the keyboard to open the shutdown interface.

Copyright © Windows knowledge All Rights Reserved