```
::===========================================================================
@ECHO OFF
ECHO intAnswer = Msgbox("This software resets the default opening method of .BAT, .CMD, and .REG files from the original 'Run' to 'View'. In this way, files won't be directly executed when accidentally double-clicked, which can effectively avoid misoperations and enhance system security.", vbExclamation, "File Security Enhancement Tool: Batch BAT Files, Command Script CMD Files, Registry REG Files")>%Temp%\Temp.vbs
%Temp%\Temp.vbs
ECHO REGEDIT4 >TEMP.TXT
ECHO. >>TEMP.TXT
ECHO >>TEMP.TXT
ECHO @="Edit(&E)" >>TEMP.TXT
ECHO >>TEMP.TXT
ECHO @="Edit(&E)" >>TEMP.TXT
ECHO >>TEMP.TXT
ECHO @="edit" >>TEMP.TXT
ECHO >>TEMP.TXT
ECHO @="Edit(&E)" >>TEMP.TXT
ECHO >>TEMP.TXT
ECHO @="notepad.exe \"%%1\"" >>TEMP.TXT
ECHO >>TEMP.TXT
ECHO "NullFile"="" >>TEMP.TXT
regedit /S TEMP.TXT
DEL TEMP.TXT
ECHO intAnswer = Msgbox("Settings successful! The default opening method of batch BAT files, command script CMD files, and registry REG files has been reset from the original 'Run' to 'View'. Please click 'OK' to exit.", vbExclamation, "File Security Enhancement Tool Execution Completed!")>%Temp%\Temp.vbs
%Temp%\Temp.vbs
DEL %Temp%\Temp.vbs
::===========================================================================
::
::How to restore the original system settings? Just save the following code as a BAT file and import it into the system.
::
::Uninstall program:
::
::@ECHO OFF
::ECHO REGEDIT4 >TEMP.TXT
::ECHO. >>TEMP.TXT
::ECHO >>TEMP.TXT
::ECHO @="" >>TEMP.TXT
::ECHO >>TEMP.TXT
::ECHO @="" >>TEMP.TXT
::ECHO >>TEMP.TXT
::ECHO @="open" >>TEMP.TXT
::ECHO >>TEMP.TXT
::regedit /S TEMP.TXT
::DEL TEMP.TXT
::
::===========================================================================
:: Increase the security of.bat,.cmd, and.reg files in the system
::
::
::Applicable to: Windows98/WindowsMe/WindowsNT/Windows2000/WindowsXP operating systems.
::
::
::
:: Windows98, WindowsMe, Windows NT, Windows2000, and WindowsXP are operating systems that everyone is using. Among these operating systems, there are three types of files that are prone to system exceptions or errors if not operated carefully. These three types of files are: MS-DOS command batch files, WINDOWS NT command script files, and registry files, with extensions.bat,.cmd, and.reg respectively. The reason why these three types of files have poor fault tolerance is that the default opening method of these three types of files in the system is Run, that is, if these files are accidentally double-clicked, the files will be directly executed. And executing these three types of files is very likely to cause registry damage or system exceptions.
::
:: To solve this problem, Rouren made something to strengthen these three files. The principle of reinforcement is that the above three types of files are all text files. Change the default opening method to View, that is, when double-clicked, these files will not be directly executed but opened by Notepad for viewing and editing. And the "Run" or "Import" of these files needs to be started by clicking the corresponding option in the right-click shortcut menu.
::
:: In this way, you don't have to worry about accidentally double-clicking these three types of dangerous files anymore, and the stability and fault tolerance of the system are enhanced.
::
::
::===========================================================================
::
:: Giving roses, leaving fragrance. If you are satisfied, don't forget to send a copy to your friends.
::Rouren sincerely hopes to help you and your friends increase a bit of fun in using the computer and reduce a bit of trouble in using the computer.
::
:: Welcome to use, please keep the code complete. Contact Rouren: bootp@126.com
::
::=====================================EOF===================================
```
::===========================================================================
@ECHO OFF
ECHO intAnswer = Msgbox("This software resets the default opening method of .BAT, .CMD, and .REG files from the original 'Run' to 'View'. In this way, files won't be directly executed when accidentally double-clicked, which can effectively avoid misoperations and enhance system security.", vbExclamation, "File Security Enhancement Tool: Batch BAT Files, Command Script CMD Files, Registry REG Files")>%Temp%\Temp.vbs
%Temp%\Temp.vbs
ECHO REGEDIT4 >TEMP.TXT
ECHO. >>TEMP.TXT
ECHO >>TEMP.TXT
ECHO @="Edit(&E)" >>TEMP.TXT
ECHO >>TEMP.TXT
ECHO @="Edit(&E)" >>TEMP.TXT
ECHO >>TEMP.TXT
ECHO @="edit" >>TEMP.TXT
ECHO >>TEMP.TXT
ECHO @="Edit(&E)" >>TEMP.TXT
ECHO >>TEMP.TXT
ECHO @="notepad.exe \"%%1\"" >>TEMP.TXT
ECHO >>TEMP.TXT
ECHO "NullFile"="" >>TEMP.TXT
regedit /S TEMP.TXT
DEL TEMP.TXT
ECHO intAnswer = Msgbox("Settings successful! The default opening method of batch BAT files, command script CMD files, and registry REG files has been reset from the original 'Run' to 'View'. Please click 'OK' to exit.", vbExclamation, "File Security Enhancement Tool Execution Completed!")>%Temp%\Temp.vbs
%Temp%\Temp.vbs
DEL %Temp%\Temp.vbs
::===========================================================================
::
::How to restore the original system settings? Just save the following code as a BAT file and import it into the system.
::
::Uninstall program:
::
::@ECHO OFF
::ECHO REGEDIT4 >TEMP.TXT
::ECHO. >>TEMP.TXT
::ECHO >>TEMP.TXT
::ECHO @="" >>TEMP.TXT
::ECHO >>TEMP.TXT
::ECHO @="" >>TEMP.TXT
::ECHO >>TEMP.TXT
::ECHO @="open" >>TEMP.TXT
::ECHO >>TEMP.TXT
::regedit /S TEMP.TXT
::DEL TEMP.TXT
::
::===========================================================================
:: Increase the security of.bat,.cmd, and.reg files in the system
::
::
::Applicable to: Windows98/WindowsMe/WindowsNT/Windows2000/WindowsXP operating systems.
::
::
::
:: Windows98, WindowsMe, Windows NT, Windows2000, and WindowsXP are operating systems that everyone is using. Among these operating systems, there are three types of files that are prone to system exceptions or errors if not operated carefully. These three types of files are: MS-DOS command batch files, WINDOWS NT command script files, and registry files, with extensions.bat,.cmd, and.reg respectively. The reason why these three types of files have poor fault tolerance is that the default opening method of these three types of files in the system is Run, that is, if these files are accidentally double-clicked, the files will be directly executed. And executing these three types of files is very likely to cause registry damage or system exceptions.
::
:: To solve this problem, Rouren made something to strengthen these three files. The principle of reinforcement is that the above three types of files are all text files. Change the default opening method to View, that is, when double-clicked, these files will not be directly executed but opened by Notepad for viewing and editing. And the "Run" or "Import" of these files needs to be started by clicking the corresponding option in the right-click shortcut menu.
::
:: In this way, you don't have to worry about accidentally double-clicking these three types of dangerous files anymore, and the stability and fault tolerance of the system are enhanced.
::
::
::===========================================================================
::
:: Giving roses, leaving fragrance. If you are satisfied, don't forget to send a copy to your friends.
::Rouren sincerely hopes to help you and your friends increase a bit of fun in using the computer and reduce a bit of trouble in using the computer.
::
:: Welcome to use, please keep the code complete. Contact Rouren: bootp@126.com
::
::=====================================EOF===================================
```
Recent Ratings for This Post
( 2 in total)
Click for details
Attachments
