How to turn off automatic playback of all partitions and restore cmd batches of automatic playback of all partitions
Editor to share with you how to turn off all partition auto-playback and resume all partition auto-play cmd batch processing, I believe that most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
Using the method, create a new .TXT text document and paste the following red area code into it.
Then save to * .bat suffix or * .cmd suffix batch file format to run and use!
1. Turn off auto playback of all partitions
The code is as follows:
@ ECHO OFF
@ ECHO.
@ ECHO. Please don't say it.
@ ECHO.
@ ECHO-
@ ECHO nowadays, there are many kinds of viruses that rely on the flash drive auto-playback function to spread wantonly, sometimes it is difficult for us to prevent, it is more nerve-racking than
@ ECHO as the most popular Weijin variant nowadays! This operation will completely turn off the auto-playback function of all drives, please use it with caution!
@ ECHO-
@ ECHO.
Echo. & pause
Reg delete HKCU\ Software\ Microsoft\ Windows\ CurrentVersion\ Policies\ Explorer / v NoDriveTypeAutoRun / f
Reg add HKCU\ Software\ Microsoft\ Windows\ CurrentVersion\ Policies\ Explorer / v NoDriveTypeAutoRun / t REG_DWORD / d 255 / f
Cls
Echo.
Echo.
Echo.
Echo.
Echo closed all drives to automatically play successfully!
Echo.
Echo. & pause
two。 Resume auto playback of all partitions
The code is as follows:
@ ECHO OFF
@ ECHO.
@ ECHO. Please don't say it.
@ ECHO.
@ ECHO-
@ ECHO turning off the autoplay function of all drives may cause some inconvenience to your operation. This program can restore the XP default.
@ ECHO autoplay function, but we remind you to do a good job of virus defense!
@ ECHO-
@ ECHO.
Echo. & pause
Reg delete HKCU\ Software\ Microsoft\ Windows\ CurrentVersion\ Policies\ Explorer / v NoDriveTypeAutoRun / f
Reg add HKCU\ Software\ Microsoft\ Windows\ CurrentVersion\ Policies\ Explorer / v NoDriveTypeAutoRun / t REG_DWORD / d 223 / f
Cls
Echo.
Echo.
Echo.
Echo.
Echo restore all drives auto play successfully!
Echo.
Echo. & pause
The above is all the contents of the article "how to turn off auto-playback of all partitions and resume cmd batches of auto-playback of all partitions". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!