CopyCodeThe Code is as follows: @ echo off
: Displays the input in reverse order. It can process mixed numbers, letters (case sensitive), and symbol formats.
: Case Sensitive
: Can I enumerate passwords with a slight modification?
: Characters that cannot be processed:
: Pipeline Symbol: |
: Redirection Symbol: <,>
: Connection Symbol :&
: Escape characters: %, ^
: Other symbols :? , *,), = ,;,"
: Code by JM 2006-9-7 cmd @ XP
CLS
Set input =
Set/P input = 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 d e f g h I j k l m n o 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 returns % output % in reverse order.
Pause