当前位置:网站首页>How to set timed network disconnection to assist self-discipline in win10
How to set timed network disconnection to assist self-discipline in win10
2022-08-08 17:18:00 【Wholehearted】
Author: ken Kidd
Link: https://www.zhihu.com/question/343758238/answer/2112022881
Source: Zhihu
The copyright belongs to the author.For commercial reprints, please contact the author for authorization, and for non-commercial reprints, please indicate the source.
Now share the real and effective "how to disconnect the network regularly and connect to the network regularly in win10". Preview the new .txt file view the network name and paste the code to close the network regularly into the text file. Modify the encoding format of the text file and modify the suffixOpen the task scheduler, select "create task" and set it as shown in the picture. The code to open the network regularly. The operation steps to wake up the computer regularly." class="origin_image zh-lightbox-thumb" width=631>First talk about the operation steps of shutting down the network regularly 1. Select a disk, right-click to create a new text file (.txt), no matter which disk, it does not need to be certainIt is the system disk, so I put it on the D drive.Then rename the text file, preferably in English 2. Check the name of the network you are using Note: This step is very, very important
Open the control panel, open "Network and Internet", and select "Network Connection".After connecting", check the name of the network you are using, remember this name
For example, my computer is plugged into broadband, and the network I use is a network called "Ethernet".Some people may be using wifi, some people may have a wireless network card inserted, and some people may be using the network called "local connection", everyone's situation will be different 3. Open the new text file in step 1,Copy this code and paste it into a text file. netsh interface set interface "Ethernet" disabled The name in the double quotes is changed to your own network name. Next, it is very important to choose Save As in "Save As" and modify the suffix to .batand encoding type is ANSI
Warning: Do not save directly, then rename .txt to .bat, this is wrongof.If you do this, once your network name contains Chinese, the generated bat file will be garbled 4. Open the task scheduler and select "create task"
The settings in general are as follows
The settings in the trigger are as shown below
In the operation, select the path of the BAT file, and in the "Start in" there, copy and paste the root directory of the BAT file Note: Some tutorials will say, the script path is thereThere can be no double quotation marks, this statement is pure nonsense.You directly click "Browse" to select the script, if it shows double quotation marks, then let it have double quotation marks. If there are no double quotation marks, you should not add it deliberately. Instead, it is in the column of "Starting at", which really cannot have double quotation marks
In the condition, set as shown below
In the setting column, set as shown below
Finally click OK, it will pop up the interface for you to enter the administrator password, just enter
The steps to open the network regularly are the same as the above, except that the code is replaced by netsh interfaceSet interface "Ethernet" enabled, it should be noted that if you are like the answerer, what you need is to disconnect from the Internet regularly at night, and automatically connect to the Internet in the morning, there is a need for a "healthy network".Then you also need to get a setting to wake up the computer regularly, because in the sleep state, the scheduled task will not startimg.inotgo.com/imagesLocal/202208/07/202208070512579342_13.jpg" class="origin_image zh-lightbox-thumb" width=952>2. Open Control Panel >> Power Options >> Change Computer Sleep Time >> ChangeAdvanced Power Settings >> Sleep >> Allow wake timer, set to enable 
Last last, sayDigression: The most fundamental purpose of shutting down the network regularly is actually the same as shutting down WiFi regularly, setting a time limit for yourself, getting out of the online world, and getting out of a vicious circle such as staying up late and chasing dramas.Use a little outside power to help yourself out of the bad cycle
边栏推荐
- 2.MySQL链接和创建数据库,创建数据表
- [Paper Reading] RAL 2022: Receding Moving Object Segmentation in 3D LiDAR Data Using Sparse 4D Convolutions
- 徽商期货正规可靠吗?在徽商期货开户是否安全?
- leetcode:313. 超级丑数
- APICloud AVM wraps date and time selection components
- 以数治企,韧性成长,2022 年中国 CIO 数字峰会成功举行
- 【TypeScript】函数类型:返回值类型和参数类型到底如何定义?
- 【20210923】选择感兴趣的研究方向?
- 中金财富开户安全吗?怎么操作?
- Debug和Release的区别
猜你喜欢

顺序表与链表结构及解析

Cy5反式环辛烯,TCO-Cy5,Cy5 trans-cyclooctene标记生物分子

通俗易懂的epoll

Cholesterol-PEG-DBCO,CLS-PEG-DBCO,胆固醇-聚乙二醇-二苯基环辛炔一种环炔烃
![[Paper Reading] RAL 2022: Receding Moving Object Segmentation in 3D LiDAR Data Using Sparse 4D Convolutions](/img/6c/2d8469b2113f6c23c5b75e6f6e479e.png)
[Paper Reading] RAL 2022: Receding Moving Object Segmentation in 3D LiDAR Data Using Sparse 4D Convolutions

PNAS最新研究:81%解题率,神经网络 Codex 推开高等数学世界大门

文件操作和IO

MySQL 表的增删查改

看到这个应用上下线方式,不禁感叹:优雅,太优雅了!

同态加密:正则嵌入、理想格和RLWE问题
随机推荐
H. Huge Boxes of Animal Toys
并发与并行
linux安装部署redis&配置远程连接
leetcode:296.最佳的碰头地点
Are Huishang Futures official and reliable?Is it safe to open an account in Huishang Futures?
L2-012 关于堆的判断 (25 分)(堆)
leetcode:295. 数据流的中位数
[Paper Reading] RAL 2022: Receding Moving Object Segmentation in 3D LiDAR Data Using Sparse 4D Convolutions
Fluorescein-PEG-CLS,胆固醇-聚乙二醇-荧光素用于缩短包封周期
mysql进阶(二十九)常用函数汇总
使用电脑通过VNC Viewer远程连接树莓派4B
Regular use in js
MySQL 表的增删查改
正则在js中的使用
4. S32K14X study notes: S32 Design Studio new and imported projects
数据库分析与优化
目标检测、目标跟踪、图像分类最新进展
L2-019 悄悄关注 (25 分)
The latest research from PNAS: 81% problem solving rate, neural network Codex opens the door to the world of advanced mathematics
【NodeJs篇】fs文件系统模块