Get the App
SLTechnology News&Howtos  ›  Development  › 

How to implement batch encryption. Bat

Shulou Source: shulou.com Published: 2022-06-03 08:30:53 09月28日 Update

This article is about how to implement batch encryption. Bat. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

The code is as follows:

% a% a%% a% a% a% % a% a%% a% a% a% % a% a%% a% a% a% % a% a%% a% a cls @ echo off color 2a: start cls echo * Echo * * echo * BAT encryption final version * echo * * echo * * * echo. Echo. The final version of echo BAT encryption is an updated version of the BAT encryption tool, which has many advantages over the previous version of the encryption tool: echo. Echo ★ can successfully encrypt any batch file at one time, making it easier. Echo. Echo ★ allows you to enter any batch that needs to be encrypted for greater encryption flexibility. Echo. Echo ★ can automatically judge the wrong input, making it more user-friendly. Echo. Echo description: enter the batch file that needs to be encrypted below, and directly enter the batch file name to encrypt the BAT under the current directory, or you can specify any BAT with a path. The encrypt.bat files generated under the current directory are encrypted batches. Echo. Echo by Mulinson QQ:573381312 BYE echo. Echo. Echo. Set / p file= Please enter the batch to be encrypted and press enter (Q = exit): if "% file%" = "Q" goto quit echo% file% | findstr / I "\ .bat $" > nul & & goto go echo% file% | findstr / I "\ .cmd $" > nul & & goto go cls echo = echo Please enter correctly! Echo = echo. Echo. Echo press any key to re-enter. Pause > nul goto start: go if not exist "% file%" goto newly if exist encrypt.bat copy encrypt.bat encryptbak.bat echo%% a%% a% %% a% %% a% %% a% %% a% % a% In ("% tmp%\ encrypt.tmp") do (echo% ~ zi > nul 2 > nul set size=%%~zi set numbing drugs sizeVuper1! Set / a modulated numbing%% 2 if! mod! Equ 0 (goto even) else (goto odd): even copy "% tmp%\ encrypt.tmp" encrypt.bat del "% tmp%\ encrypt.tmp" cls echo = = echo Congratulations, batch encryption succeeded ^! Echo = = echo. Echo. Echo presses any key to exit. Pause > nul goto quit: odd echo. > "% tmp%\ encrypt.tmp" copy "% tmp%\ encrypt.tmp" encrypt.bat del "% tmp%\ encrypt.tmp" cls echo = = echo Congratulations, batch encryption succeeded ^ ^! Echo = = echo. Echo. Echo presses any key to exit. Pause > nul goto quit: newly cls echo = = echo cannot find the batch file, please re-enter it! Echo = = echo. Echo. Echo press any key to start. Pause > nul goto start: quit exit Thank you for your reading! This is the end of this article on "how to achieve batch encryption. Bat". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Tags: Encryption input file success content tools more directory article good practical easy disposable human nature code advantage author enter key file name article Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Shulou Information vpn NVidia Linux