Win7 system uses JS script to implement shutdown function

  
 The Win7 32-bit system uses the JS format to set the shutdown script to share with you. There are many ways to shut down the operating system. For example, you can use the Shutdown command to set the shutdown shortcut. You can also use the JS format to set the shutdown script. The specific operations are as follows: 1 Press “Win+R”Open“Run” window, enter the "notepad” command and press Enter to open Notepad; 2. Type the following command in the open Notepad document (new ActiveXObject(" Shell.Application")).ShutdownWindows().
3, click “ File & rdquo; & mdash; & mdash; & ldquo; Save As & rdquo;, the file save type is the system default, the file name is changed to JS suffix. For example, shut down .js and save the path to the desktop.
4, on the desktop to see a shutdown icon, right click on the icon, select “ create shortcuts & rdquo;. View the shortcut to another shortcut on the desktop. “Shutdown”; 5. On the shortcut icon created by it, right click on the icon and select “Property”, then in the pop-up property window, switch to shortcut. In the Method tab, enter 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