当前位置:网站首页>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
边栏推荐
- Tensorflow教程(五)——MNIST项目提高
- L2-020 功夫传人 (25 分)
- L2-008 最长对称子串 (25 分)
- Cholesterol-PEG-DBCO,CLS-PEG-DBCO,胆固醇-聚乙二醇-二苯基环辛炔一种环炔烃
- L2-015 互评成绩 (25 分)
- Chapter 20 Source Code File REST API Reference (2)
- 【 8.7 】 source code - card to LCM with GCD 】 【 】
- LeetCode_二叉树_中等_515.在每个树行中找最大值
- 文件操作和IO
- Nervegrowold: machine advanced learning advice
猜你喜欢
leetcode:296.最佳的碰头地点
arxiv国内镜像——快速下载
通俗易懂的epoll
以数治企,韧性成长,2022 年中国 CIO 数字峰会成功举行
DSPE-PEG-FITC,Fluorescein-PEG-DSPE,修饰性PEG磷脂-聚乙二醇-荧光素
数字图像处理(六)—— 图像压缩
dp,dpi,px知识补充
The latest research from PNAS: 81% problem solving rate, neural network Codex opens the door to the world of advanced mathematics
redis介绍&命令&性能相关&缓存穿透
APICloud AVM wraps date and time selection components
随机推荐
JVM内存模型和结构详解(五大模型图解)
linux安装部署redis&配置远程连接
Camera calibration toobox for Matlab(一)—— 工具包的基本使用
L2-012 关于堆的判断 (25 分)(堆)
Mysql都有那些最需要掌握的原理?
dp,dpi,px知识补充
【20210923】Choose the research direction you are interested in?
企业“数字化转型”成功的2个必备条件!
【LeetCode】试题总结:深度优先搜索 (DFS)
JVM-简介&垃圾回收&内存泄漏分析
【LeetCode】Exam Summary: Depth-First Search (DFS)
【教程2】疯壳·ARM功能手机-测试程序介绍
D2. Sage‘s Birthday (hard version)
第二十章 源代码文件 REST API 参考(二)
中金证券股票开户流程是什么,我需要准备身份证吗,安全吗
arm交叉编译
【数学模型】TOPSIS
MySQL 数据库
R文件找不到问题
glide4入门