当前位置:网站首页>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
边栏推荐
- Cy5反式环辛烯,TCO-Cy5,Cy5 trans-cyclooctene标记生物分子
- Qt——选择文件夹并获取路径以及文件夹下子文件
- R文件找不到问题
- 三年软件工程真题
- L2-027 名人堂与代金券 (25 分)
- [In-depth study of 4G/5G/6G topic-54]: L3 signaling control-3-segmentation of software functions and processes-signaling of CU-UP network elements
- 京东二面:高并发设计,都有哪些技术方案?
- Camera calibration toobox for Matlab(一)—— 工具包的基本使用
- leetcode:294.翻转游戏
- The new version of squirrel as source change operation
猜你喜欢
随机推荐
正则在js中的使用
[Paper Reading] RAL 2022: Receding Moving Object Segmentation in 3D LiDAR Data Using Sparse 4D Convolutions
看到这个应用上下线方式,不禁感叹:优雅,太优雅了!
2022年11大最佳缺陷管理工具盘点
C人脸识别
pytorch常用语句
rv和sv的区别
activemq 消息头、消息体、消息属性
D. Non-zero Segments
L2-026 小字辈 (25 分)
在指南针炒股软件中的指标靠谱吗?安全吗?
Camera calibration toobox for Matlab(一)—— 工具包的基本使用
目标检测、目标跟踪、图像分类最新进展
【开源教程2】疯壳·开源编队无人机-硬件资源简介
L2-016 愿天下有情人都是失散多年的兄妹 (25 分)
Cy5反式环辛烯,TCO-Cy5,Cy5 trans-cyclooctene标记生物分子
顺序表与链表结构及解析
APICloud AVM 封装日期和时间选择组件
【数学模型】灰色关联分析
二、pytest+selenium+allure实现web ui自动化