Win7系统使用JS脚本实现关机功能
时间:2023-08-14 16:30:25
这篇文章主要介绍了Win7系统使用JS脚本实现关机功能,js也可以关机?你没看错,确实可以,而且代码很小即可实现,需要的朋友可以参考下 Win7 32位系统使用JS格式设置关机脚本分享给大家,操作系统过程中遇到关机的方法有很多种,比如通过Shutdown命令设置关机快捷方式,还可以使用JS格式设置关机脚本,具体操作如下:
1、按“Win+R”打开“运行”窗口,输入“notepad”命令后按回车,打开记事本;
2、在打开的记事本文档中键入下面的命令(new ActiveXObject("Shell.Application")).ShutdownWindows()。
3、点击“文件”——“另存为”,文件保存类型为系统默认,文件名改为JS后缀。比如关机.js,将路径保存到桌面上。
4、在桌面上看到有一个关机的图标,在该图标用鼠标右键,选择“创建快捷方式”。在桌面上查看到另一个快捷方式的“关机”;
5、在其创建的快捷方式图标上,在该图标右键选择“属性”,然后在弹出来的属性窗口中,切换到快捷方式标签页中,在快捷键处输入你的快捷方式。
此时键盘上输入刚键入的快捷方式即可打开关机界面。
标签:Win7系统,JS脚本,关机
![](/images/zang.png)
![](/images/jiucuo.png)
猜你喜欢
Win8.1系统启动文件夹在哪里?
2023-08-12 12:11:30
![](https://img.aspxhome.com/file/2023/2/a287863_0s.jpg)
如何用大番茄U盘启动盘安装Ghost Win7?
2022-12-04 15:36:22
![](https://img.aspxhome.com/file/2023/7/a329698_0s.jpg)
从苹果之父乔布斯身上学到的PPT演讲之术
2022-03-06 14:11:43
Win10 Xbox One游戏串流功能暗藏超高质量模式 可轻松开启
2023-01-14 18:57:51
![](https://img.aspxhome.com/file/2023/28/a248197_0s.jpg)
最强一体机iMac Pro硬件配置详解
2022-06-03 00:39:50
![](https://img.aspxhome.com/file/2023/8/a209778_0s.jpeg)
WinXP系统开机自动注销使用安全模式也不行怎么办
2023-06-15 02:08:37
![](https://img.aspxhome.com/file/2023/29/a254975_0s.jpg)
win10怎样卸载语言包
2023-11-05 16:50:45
![](https://img.aspxhome.com/file/2023/1/a280791_0s.jpg)
Win10系统WiFi共享精灵连上了不能上网如何解决?
2023-11-25 14:22:45
![](https://img.aspxhome.com/file/2023/5/a314565_0s.jpg)
Excel如何减少录入数据的错误?Excel表格数据有效性怎么使用?
2022-02-08 11:04:45
![](https://img.aspxhome.com/file/2023/27/a231473_0s.jpg)
windows7 64位旗舰版简体中文版_繁体中文版_英文版_原版iso镜像下载
2022-05-18 19:47:04
![](https://img.aspxhome.com/file/2023/30/a262587_0s.jpg)
KDH是什么文件?KDH文件怎么打开?
2023-04-18 21:42:56
![](https://img.aspxhome.com/file/2023/6/a326430_0s.jpg)
笔记本装什么系统更流畅_笔记本装什么系统更流畅的推荐
2023-06-27 02:35:55
![](https://img.aspxhome.com/file/2023/2/a286872_0s.jpg)
wps office的文件怎么打开是乱码?
2023-06-19 13:28:56
![](https://img.aspxhome.com/file/2023/0/a168370_0s.jpg)
微软Win11 22000.1041 RP预览版发布:带来两大功能更新
2022-04-19 17:31:39
![](https://img.aspxhome.com/file/2023/30/a269699_0s.jpg)
win11内存完整性(内核隔离)无法关闭的解决方法!
2022-03-02 21:49:07
![](https://img.aspxhome.com/file/2023/30/a269993_0s.jpg)
Pixelmator Pro 教程「53」,如何在 Pixelmator Pro 中自动匹配图像颜色?
2022-08-14 03:09:48
![](https://img.aspxhome.com/file/2023/7/a201857_0s.jpeg)
Win7设备管理器空白怎么办?
2023-05-08 15:58:13
![](https://img.aspxhome.com/file/2023/2/a290573_0s.jpg)
win10版本2004无法调节亮度_win102004无法调节亮度解决方法
2022-12-08 04:38:30
![](https://img.aspxhome.com/file/2023/4/a308962_0s.jpg)
win10系统输入法最新切换设置教程
2023-07-21 02:51:35
![](https://img.aspxhome.com/file/2023/1/a280709_0s.png)
wps表格如何查找指定内容
2022-11-19 15:25:46
![](https://img.aspxhome.com/file/2023/0/a182750_0s.png)