Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to implement batch encryption. Bat

2025-03-31 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report