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 display input in reverse order by batch processing

2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

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

This article will explain in detail how to display input in reverse order in batch processing. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.

The code is as follows:

Echo off:: reverse order display input, can handle numeric + letter (case-sensitive) + symbol format mixed input:: case-sensitive:: slightly modified to achieve password enumeration? :: characters that cannot be processed: pipe symbol: |:: redirect symbol: connection symbol: &:: escape symbol:%, ^:: other symbols:?, *,), =, 、 ":: code by jm 2006-9-7 CMD@XP cls set input= set / p input= Please enter a string set output= if not"% input% "="set input=%input%: loop for% I in (0 1 2 3 4 5 6 7 8 9 a b c de f g h i j k l m no p q r s t u v w x y z A B C D E F G H I J K L M N O P Q R S T U V W X Y Z `~! @ # $^ (- +). /\ [] {}:') do ((if% input:~-1% equ% I set output=%output%%%i) & & set input=%input:~0,-1%) if not "% input%" = = "goto: loop echo displays input in reverse order, and the result is% output% pause on" how batches display input in reverse order ". This ends here. Hope that the above content can be helpful to you, so that you can learn more knowledge, if you think the article is good, please 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