GL1TCH3D

Broken Text to Binary

Nov 8th, 2011
205
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.79 KB | None | 0 0
  1.  
  2. @echo off
  3. title Text to Binary Converter (Works both ways, just like DatsiK ;P)
  4. setlocal disabledelayedexpansion
  5. set fold=%cd%\
  6. set z=0
  7. set x=^|
  8. set i=0
  9. set option=1
  10. set setloc=0
  11. mode 117,30
  12. echo ^|__________^|/
  13. ping -n 2 localhost > nul
  14. cls
  15. echo ^|________^|/ /________^| ^|^| ^|___________/_/
  16. echo ^|__________^|/
  17. ping -n 2 localhost > nul
  18. cls
  19. echo ^|__________/ /__^| ^|/_/^| ^|__^|/ ^|___________^|/^|__^|/ ^|__^|/ ________^| ^|^| ^| ^|/______/ / /
  20. echo ^|________^|/ /________^| ^|^| ^|___________/_/
  21. echo ^|__________^|/
  22. ping -n 2 localhost > nul
  23. cls
  24. echo ^| ^|/_____^|_^|^| ^|_________^|/ __^| ^|^|__ ^| ^| ^| ^| ^|/_______/^|^| ^|^| ^| ^|^| ^| ^|^| ^| ^| ^|_____^| ^| ^|
  25. echo ^|__________/ /__^| ^|/_/^| ^|__^|/ ^|___________^|/^|__^|/ ^|__^|/ ________^| ^|^| ^| ^|/______/ / /
  26. echo ^|________^|/ /________^| ^|^| ^|___________/_/
  27. echo ^|__________^|/
  28. ping -n 2 localhost > nul
  29. cls
  30. echo ^| ^| ^|____^| ^|^| ^| ^|/_____/^| ^| ^|^| ^| ^| ^| ^| ^| ^|_______ ^| ^|^| ^| ^|^| ^|________ \\ ^| ^| ^| ^| ^| ^|
  31. echo ^| ^|/_____^|_^|^| ^|_________^|/ __^| ^|^|__ ^| ^| ^| ^| ^|/_______/^|^| ^|^| ^| ^|^| ^| ^|^| ^| ^| ^|_____^| ^| ^|
  32. echo ^|__________/ /__^| ^|/_/^| ^|__^|/ ^|___________^|/^|__^|/ ^|__^|/ ________^| ^|^| ^| ^|/______/ / /
  33. echo ^|________^|/ /________^| ^|^| ^|___________/_/
  34. echo ^|__________^|/
  35. ping -n 2 localhost > nul
  36. cls
  37. echo ^| ^| ^| /__/^| ^| ^|^|______ ^| ^|^| ^| ^| ^| ^| ^| ^| ^| _____ ^|^| /________^| // ^| ^| ^| ^| ^| ^|
  38. echo ^| ^| ^|____^| ^|^| ^| ^|/_____/^| ^| ^|^| ^| ^| ^| ^| ^| ^|_______ ^| ^|^| ^| ^|^| ^|________ \\ ^| ^| ^| ^| ^| ^|
  39. echo ^| ^|/_____^|_^|^| ^|_________^|/ __^| ^|^|__ ^| ^| ^| ^| ^|/_______/^|^| ^|^| ^| ^|^| ^| ^|^| ^| ^| ^|_____^| ^| ^|
  40. echo ^|__________/ /__^| ^|/_/^| ^|__^|/ ^|___________^|/^|__^|/ ^|__^|/ ________^| ^|^| ^| ^|/______/ / /
  41. echo ^|________^|/ /________^| ^|^| ^|___________/_/
  42. echo ^|__________^|/
  43. ping -n 2 localhost > nul
  44. cls
  45. echo ^| ^| ^| ___ ^| ^|^| /_ ^|^| ^| ^| ^| ^| ^| ^| ^| ^|/____^| ^|^| ________^| ^|^| ^| ^| ^| \ \ \
  46. echo ^| ^| ^| /__/^| ^| ^|^|______ ^| ^|^| ^| ^| ^| ^| ^| ^| ^| _____ ^|^| /________^| // ^| ^| ^| ^| ^| ^|
  47. echo ^| ^| ^|____^| ^|^| ^| ^|/_____/^| ^| ^|^| ^| ^| ^| ^| ^| ^|_______ ^| ^|^| ^| ^|^| ^|________ \\ ^| ^| ^| ^| ^| ^|
  48. echo ^| ^|/_____^|_^|^| ^|_________^|/ __^| ^|^|__ ^| ^| ^| ^| ^|/_______/^|^| ^|^| ^| ^|^| ^| ^|^| ^| ^| ^|_____^| ^| ^|
  49. echo ^|__________/ /__^| ^|/_/^| ^|__^|/ ^|___________^|/^|__^|/ ^|__^|/ ________^| ^|^| ^| ^|/______/ / /
  50. echo ^|________^|/ /________^| ^|^| ^|___________/_/
  51. echo ^|__________^|/
  52. ping -n 2 localhost > nul
  53. cls
  54. echo ^| ^| ^| ^| ^|^| / ^|^| ^| ^| ^| ^| ^| ^| ^| ^|^|____^| ^|^| ^| ^|^| ^| ______ ^| ^|
  55. echo ^| ^| ^| ___ ^| ^|^| /_ ^|^| ^| ^| ^| ^| ^| ^| ^| ^|/____^| ^|^| ________^| ^|^| ^| ^| ^| \ \ \
  56. echo ^| ^| ^| /__/^| ^| ^|^|______ ^| ^|^| ^| ^| ^| ^| ^| ^| ^| _____ ^|^| /________^| // ^| ^| ^| ^| ^| ^|
  57. echo ^| ^| ^|____^| ^|^| ^| ^|/_____/^| ^| ^|^| ^| ^| ^| ^| ^| ^|_______ ^| ^|^| ^| ^|^| ^|________ \\ ^| ^| ^| ^| ^| ^|
  58. echo ^| ^|/_____^|_^|^| ^|_________^|/ __^| ^|^|__ ^| ^| ^| ^| ^|/_______/^|^| ^|^| ^| ^|^| ^| ^|^| ^| ^| ^|_____^| ^| ^|
  59. echo ^|__________/ /__^| ^|/_/^| ^|__^|/ ^|___________^|/^|__^|/ ^|__^|/ ________^| ^|^| ^| ^|/______/ / /
  60. echo ^|________^|/ /________^| ^|^| ^|___________/_/
  61. echo ^|__________^|/
  62. ping -n 2 localhost > nul
  63. cls
  64. echo ^| ________^|/ ^| ^|^| /__/^| ^|__________^|/ ^| _______^|/ ^| ^|^| ^| ^|^| ^|________ ^|^| /__________/\
  65. echo ^| ^| ^| ^| ^|^| / ^|^| ^| ^| ^| ^| ^| ^| ^| ^|^|____^| ^|^| ^| ^|^| ^| ______ ^| ^|
  66. echo ^| ^| ^| ___ ^| ^|^| /_ ^|^| ^| ^| ^| ^| ^| ^| ^| ^|/____^| ^|^| ________^| ^|^| ^| ^| ^| \ \ \
  67. echo ^| ^| ^| /__/^| ^| ^|^|______ ^| ^|^| ^| ^| ^| ^| ^| ^| ^| _____ ^|^| /________^| // ^| ^| ^| ^| ^| ^|
  68. echo ^| ^| ^|____^| ^|^| ^| ^|/_____/^| ^| ^|^| ^| ^| ^| ^| ^| ^|_______ ^| ^|^| ^| ^|^| ^|________ \\ ^| ^| ^| ^| ^| ^|
  69. echo ^| ^|/_____^|_^|^| ^|_________^|/ __^| ^|^|__ ^| ^| ^| ^| ^|/_______/^|^| ^|^| ^| ^|^| ^| ^|^| ^| ^| ^|_____^| ^| ^|
  70. echo ^|__________/ /__^| ^|/_/^| ^|__^|/ ^|___________^|/^|__^|/ ^|__^|/ ________^| ^|^| ^| ^|/______/ / /
  71. echo ^|________^|/ /________^| ^|^| ^|___________/_/
  72. echo ^|__________^|/
  73. ping -n 2 localhost > nul
  74. cls
  75. echo /_________/^| /__/^| ___ /__________/^| /__________/^| /__/^| /__/^| /__________/^| ___________
  76. echo ^| ________^|/ ^| ^|^| /__/^| ^|__________^|/ ^| _______^|/ ^| ^|^| ^| ^|^| ^|________ ^|^| /__________/\
  77. echo ^| ^| ^| ^| ^|^| / ^|^| ^| ^| ^| ^| ^| ^| ^| ^|^|____^| ^|^| ^| ^|^| ^| ______ ^| ^|
  78. echo ^| ^| ^| ___ ^| ^|^| /_ ^|^| ^| ^| ^| ^| ^| ^| ^| ^|/____^| ^|^| ________^| ^|^| ^| ^| ^| \ \ \
  79. echo ^| ^| ^| /__/^| ^| ^|^|______ ^| ^|^| ^| ^| ^| ^| ^| ^| ^| _____ ^|^| /________^| // ^| ^| ^| ^| ^| ^|
  80. echo ^| ^| ^|____^| ^|^| ^| ^|/_____/^| ^| ^|^| ^| ^| ^| ^| ^| ^|_______ ^| ^|^| ^| ^|^| ^|________ \\ ^| ^| ^| ^| ^| ^|
  81. echo ^| ^|/_____^|_^|^| ^|_________^|/ __^| ^|^|__ ^| ^| ^| ^| ^|/_______/^|^| ^|^| ^| ^|^| ^| ^|^| ^| ^| ^|_____^| ^| ^|
  82. echo ^|__________/ /__^| ^|/_/^| ^|__^|/ ^|___________^|/^|__^|/ ^|__^|/ ________^| ^|^| ^| ^|/______/ / /
  83. echo ^|________^|/ /________^| ^|^| ^|___________/_/
  84. echo ^|__________^|/
  85. ping -n 2 localhost > nul
  86. cls
  87. echo __________ ___ ___________ ___________ ___ ___ ___________
  88. echo /_________/^| /__/^| ___ /__________/^| /__________/^| /__/^| /__/^| /__________/^| ___________
  89. echo ^| ________^|/ ^| ^|^| /__/^| ^|__________^|/ ^| _______^|/ ^| ^|^| ^| ^|^| ^|________ ^|^| /__________/\
  90. echo ^| ^| ^| ^| ^|^| / ^|^| ^| ^| ^| ^| ^| ^| ^| ^|^|____^| ^|^| ^| ^|^| ^| ______ ^| ^|
  91. echo ^| ^| ^| ___ ^| ^|^| /_ ^|^| ^| ^| ^| ^| ^| ^| ^| ^|/____^| ^|^| ________^| ^|^| ^| ^| ^| \ \ \
  92. echo ^| ^| ^| /__/^| ^| ^|^|______ ^| ^|^| ^| ^| ^| ^| ^| ^| ^| _____ ^|^| /________^| // ^| ^| ^| ^| ^| ^|
  93. echo ^| ^| ^|____^| ^|^| ^| ^|/_____/^| ^| ^|^| ^| ^| ^| ^| ^| ^|_______ ^| ^|^| ^| ^|^| ^|________ \\ ^| ^| ^| ^| ^| ^|
  94. echo ^| ^|/_____^|_^|^| ^|_________^|/ __^| ^|^|__ ^| ^| ^| ^| ^|/_______/^|^| ^|^| ^| ^|^| ^| ^|^| ^| ^| ^|_____^| ^| ^|
  95. echo ^|__________/ /__^| ^|/_/^| ^|__^|/ ^|___________^|/^|__^|/ ^|__^|/ ________^| ^|^| ^| ^|/______/ / /
  96. echo ^|________^|/ /________^| ^|^| ^|___________/_/
  97. echo ^|__________^|/
  98. ping -n 15 localhost > nul
  99. :top
  100. set i=0
  101. set z=0
  102. cls
  103. echo Hello and welcome to the text to binary converter made by GL1TCH3D.
  104. echo You will have multiple options such as reading from a file, etc.
  105. echo.
  106. echo Here are your choices:
  107. echo 1) Convert text to binary
  108. echo 2) Convert binary to text
  109. echo 3) Options
  110. echo 4) Quit
  111. set /p option=
  112. if "1"=="%option%" goto opt1
  113. if "2"=="%option%" goto opt2
  114. if "3"=="%option%" goto opt3
  115. if "4"=="%option%" goto opt4
  116. echo Invalid response. Please enter a number between (and including) 1 and 6.
  117. ping -n 4 localhost > nul
  118. goto top
  119. :opt1
  120. echo This is the option to type text into the prompt to convert.
  121. echo Type "exit" to return to the main menu.
  122. echo.
  123. if "%setloc%"=="0" echo You have not set a location for your output file&echo The default location for the output is the current folder&echo You can change this in the options menu.&echo.
  124. set /p cho1=Enter the text you wish to convert:
  125. if "exit"=="%cho1%" goto top
  126. set a=30
  127. set b=%b%
  128. :op1
  129. if ""=="!cho1:~%a%,1!" goto ope1
  130. if " "=="!cho1:~%a%,1!" set c=00100000 &goto ope1
  131. if "1"=="!cho1:~%a%,1!" set c=00110001 &goto ope1
  132. if "2"=="!cho1:~%a%,1!" set c=00110010 &goto ope1
  133. if "3"=="!cho1:~%a%,1!" set c=00110011 &goto ope1
  134. if "4"=="!cho1:~%a%,1!" set c=00110100 &goto ope1
  135. if "5"=="!cho1:~%a%,1!" set c=00110101 &goto ope1
  136. if "6"=="!cho1:~%a%,1!" set c=00110110 &goto ope1
  137. if "7"=="!cho1:~%a%,1!" set c=00110111 &goto ope1
  138. if "8"=="!cho1:~%a%,1!" set c=00111000 &goto ope1
  139. if "9"=="!cho1:~%a%,1!" set c=00111001 &goto ope1
  140. if "0"=="!cho1:~%a%,1!" set c=00110000 &goto ope1
  141. if "a"=="!cho1:~%a%,1!" set c=01100001 &goto ope1
  142. if "b"=="!cho1:~%a%,1!" set c=01100010 &goto ope1
  143. if "c"=="!cho1:~%a%,1!" set c=01100011 &goto ope1
  144. if "d"=="!cho1:~%a%,1!" set c=01100100 &goto ope1
  145. if "e"=="!cho1:~%a%,1!" set c=01100101 &goto ope1
  146. if "f"=="!cho1:~%a%,1!" set c=01100110 &goto ope1
  147. if "g"=="!cho1:~%a%,1!" set c=01100111 &goto ope1
  148. if "h"=="!cho1:~%a%,1!" set c=01101000 &goto ope1
  149. if "i"=="!cho1:~%a%,1!" set c=01101001 &goto ope1
  150. if "j"=="!cho1:~%a%,1!" set c=01101010 &goto ope1
  151. if "k"=="!cho1:~%a%,1!" set c=01101011 &goto ope1
  152. if "l"=="!cho1:~%a%,1!" set c=01101100 &goto ope1
  153. if "m"=="!cho1:~%a%,1!" set c=01101101 &goto ope1
  154. if "n"=="!cho1:~%a%,1!" set c=01101110 &goto ope1
  155. if "o"=="!cho1:~%a%,1!" set c=01101111 &goto ope1
  156. if "p"=="!cho1:~%a%,1!" set c=01110000 &goto ope1
  157. if "q"=="!cho1:~%a%,1!" set c=01110001 &goto ope1
  158. if "r"=="!cho1:~%a%,1!" set c=01110010 &goto ope1
  159. if "s"=="!cho1:~%a%,1!" set c=01110011 &goto ope1
  160. if "t"=="!cho1:~%a%,1!" set c=01110100 &goto ope1
  161. if "u"=="!cho1:~%a%,1!" set c=01110101 &goto ope1
  162. if "v"=="!cho1:~%a%,1!" set c=01110110 &goto ope1
  163. if "w"=="!cho1:~%a%,1!" set c=01110111 &goto ope1
  164. if "x"=="!cho1:~%a%,1!" set c=01111000 &goto ope1
  165. if "y"=="!cho1:~%a%,1!" set c=01111001 &goto ope1
  166. if "z"=="!cho1:~%a%,1!" set c=01111010 &goto ope1
  167. if "A"=="!cho1:~%a%,1!" set c=01000001 &goto ope1
  168. if "B"=="!cho1:~%a%,1!" set c=01000010 &goto ope1
  169. if "C"=="!cho1:~%a%,1!" set c=01000011 &goto ope1
  170. if "D"=="!cho1:~%a%,1!" set c=01000100 &goto ope1
  171. if "E"=="!cho1:~%a%,1!" set c=01000101 &goto ope1
  172. if "F"=="!cho1:~%a%,1!" set c=01000110 &goto ope1
  173. if "G"=="!cho1:~%a%,1!" set c=01000111 &goto ope1
  174. if "H"=="!cho1:~%a%,1!" set c=01001000 &goto ope1
  175. if "I"=="!cho1:~%a%,1!" set c=01001001 &goto ope1
  176. if "J"=="!cho1:~%a%,1!" set c=01001010 &goto ope1
  177. if "K"=="!cho1:~%a%,1!" set c=01001011 &goto ope1
  178. if "L"=="!cho1:~%a%,1!" set c=01001100 &goto ope1
  179. if "M"=="!cho1:~%a%,1!" set c=01001101 &goto ope1
  180. if "N"=="!cho1:~%a%,1!" set c=01001110 &goto ope1
  181. if "O"=="!cho1:~%a%,1!" set c=01001111 &goto ope1
  182. if "P"=="!cho1:~%a%,1!" set c=01010000 &goto ope1
  183. if "Q"=="!cho1:~%a%,1!" set c=01010001 &goto ope1
  184. if "R"=="!cho1:~%a%,1!" set c=01010010 &goto ope1
  185. if "S"=="!cho1:~%a%,1!" set c=01010011 &goto ope1
  186. if "T"=="!cho1:~%a%,1!" set c=01010100 &goto ope1
  187. if "U"=="!cho1:~%a%,1!" set c=01010101 &goto ope1
  188. if "V"=="!cho1:~%a%,1!" set c=01010110 &goto ope1
  189. if "W"=="!cho1:~%a%,1!" set c=01010111 &goto ope1
  190. if "X"=="!cho1:~%a%,1!" set c=01011000 &goto ope1
  191. if "Y"=="!cho1:~%a%,1!" set c=01011001 &goto ope1
  192. if "Z"=="!cho1:~%a%,1!" set c=01011010 &goto ope1
  193. if ","=="!cho1:~%a%,1!" set c=00101100 &goto ope1
  194. if "."=="!cho1:~%a%,1!" set c=00101110 &goto ope1
  195. if "/"=="!cho1:~%a%,1!" set c=00101111 &goto ope1
  196. if "?"=="!cho1:~%a%,1!" set c=00111111 &goto ope1
  197. if "'"=="!cho1:~%a%,1!" set c=00100111 &goto ope1
  198. if ":"=="!cho1:~%a%,1!" set c=00111010 &goto ope1
  199. if ";"=="!cho1:~%a%,1!" set c=00111011 &goto ope1
  200. if "\"=="!cho1:~%a%,1!" set c=01011100 &goto ope1
  201. if "~"=="!cho1:~%a%,1!" set c=01111110 &goto ope1
  202. if "`"=="!cho1:~%a%,1!" set c=01100000 &goto ope1
  203. if "@"=="!cho1:~%a%,1!" set c=01000000 &goto ope1
  204. if "#"=="!cho1:~%a%,1!" set c=00100011 &goto ope1
  205. if "$"=="!cho1:~%a%,1!" set c=00100100 &goto ope1
  206. if "-"=="!cho1:~%a%,1!" set c=00101101 &goto ope1
  207. if "_"=="!cho1:~%a%,1!" set c=01011111 &goto ope1
  208. if "="=="!cho1:~%a%,1!" set c=00111101 &goto ope1
  209. if "+"=="!cho1:~%a%,1!" set c=00101011 &goto ope1
  210. if "*"=="!cho1:~%a%,1!" set c=00101010 &goto ope1
  211. if "^!"=="!cho1:~%a%,1!" set c=00100001 &goto ope1
  212. if "&"=="!cho1:~%a%,1!" set c=00100110 &goto ope1
  213. ::if "^%"=="!cho1:~%a%,1!" set c=00100101 &goto ope1
  214. if "("=="!cho1:~%a%,1!" set c=00101000 &goto ope1
  215. if ")"=="!cho1:~%a%,1!" set c=00101001 &goto ope1
  216. if "["=="!cho1:~%a%,1!" set c=01011011 &goto ope1
  217. if "]"=="!cho1:~%a%,1!" set c=01011101 &goto ope1
  218. if "{"=="!cho1:~%a%,1!" set c=01111011 &goto ope1
  219. if "}"=="!cho1:~%a%,1!" set c=01111101 &goto ope1
  220. echo "!cho1:~%a%,1!" is not in the database.
  221. set /a a+=1
  222. goto op1
  223. :ope1
  224. set b=%b%%c%
  225. set /a a+=1
  226. goto op1
  227. :end1
  228. cls
  229. if not defined b set b=00000000
  230. if %z%==1 goto bend2
  231. echo %cho1% became:
  232. echo %b%
  233. echo.
  234. (echo %cho1% became:
  235. echo %b%
  236. echo.
  237. ) >>%fold%%x%.txt
  238. echo %b% >>%fold%%x%1.txt
  239. goto opt1
  240. :opt6
  241. cls
  242. echo Thank you for using my Binary to Text converter
  243. echo The awesome, GL1TCH3D
  244. ping -n 5 localhost>nul
  245. exit
  246. :opt5
  247. cls
  248. echo This is the options menu.
  249. echo Choose one of the following options:
  250. echo.
  251. echo 1) Change the output file paths and names.
  252. echo 2) Change the color of this window.
  253. echo 3) Back to top menu
  254. set /p chopt=
  255. if "1"=="%chopt%" goto changeout
  256. if "2"=="%chopt%" goto changecol
  257. if "3"=="%chopt%" goto top
  258. echo Invalid entry.
  259. cls
  260. goto opt5
  261. :changeout
  262. echo Enter 1 to change the folder where the output is saved.
  263. echo Enter 2 to change the names of the outputted files.
  264. echo Enter 3 to go to the main menu.
  265. set /p chout=
  266. if "1"=="%chout%" goto setfold
  267. if "2"=="%chout%" goto setname
  268. if "3"=="%chout%" goto top
  269. echo Invalid entry.
  270. cls
  271. goto opt5
  272. :changecol
  273. echo These are the colors:
  274. echo 0 = Black 8 = Gray
  275. echo 1 = Blue 9 = Light Blue
  276. echo 2 = Green A = Light Green
  277. echo 3 = Aqua B = Light Aqua
  278. echo 4 = Red C = Light Red
  279. echo 5 = Purple D = Light Purple
  280. echo 6 = Yellow E = Light Yellow
  281. echo 7 = White F = Bright White
  282. echo.
  283. echo Just type the 2 different colors you want to set.
  284. set /p background=Background color:
  285. set /p font=Font color:
  286. color %background%%font%
  287. goto opt5
  288. :setfold
  289. echo Just press enter to leave the output folder as %fold%
  290. echo An example would be "C:\users\GL1TCH3D\mydocuments\"
  291. set /p fold=
  292. cls
  293. echo Your files will now be outputted as "%fold%%x%#.txt"
  294. ping -n 3 localhost > nul
  295. set setloc=1
  296. goto opt6
  297. setname
  298. echo Just press enter to leave the outputted file names as they are.
  299. echo Remember you can't use ^/ ^\ ^* ^: ^" ^? ^| ^> ^<
  300. echo You do not need to put the extension of the file.
  301. set /p y=%x% to:
  302. goto opt6
  303. :opt3
  304. echo This is the option to type binary into the prompt to convert to text.
  305. echo Type "exit" to return to the main menu.
  306. echo.
  307. if "%setloc%"=="0" echo You have not set a location for your output file&echo The default location for the output is the current folder&echo You can change this in the options menu.&echo.
  308. set /p inp1=Enter the binary you wish to convert:
  309. if "%inp1%"=="exit" goto top
  310. set cho1=%inp1: =%
  311. set v=30
  312. set b=%b%
  313. :op3
  314. set /a a=8*%v%
  315. if ""=="!cho1:~%a%,8!" goto ope3
  316. if "00001101"=="!cho1:~%a%,8!" goto ope3
  317. if "00000000"=="!cho1:~%a%,8!" set c=* &goto ope3
  318. if "00100000"=="!cho1:~%a%,8!" set c=` &goto ope3
  319. if "00110001"=="!cho1:~%a%,8!" set c=1 &goto ope3
  320. if "00110010"=="!cho1:~%a%,8!" set c=2 &goto ope3
  321. if "00110011"=="!cho1:~%a%,8!" set c=3 &goto ope3
  322. if "00110100"=="!cho1:~%a%,8!" set c=4 &goto ope3
  323. if "00110101"=="!cho1:~%a%,8!" set c=5 &goto ope3
  324. if "00110110"=="!cho1:~%a%,8!" set c=6 &goto ope3
  325. if "00110111"=="!cho1:~%a%,8!" set c=7 &goto ope3
  326. if "00111000"=="!cho1:~%a%,8!" set c=8 &goto ope3
  327. if "00111001"=="!cho1:~%a%,8!" set c=9 &goto ope3
  328. if "00110000"=="!cho1:~%a%,8!" set c=0 &goto ope3
  329. if "01100001"=="!cho1:~%a%,8!" set c=a &goto ope3
  330. if "01100010"=="!cho1:~%a%,8!" set c=b &goto ope3
  331. if "01100011"=="!cho1:~%a%,8!" set c=c &goto ope3
  332. if "01100100"=="!cho1:~%a%,8!" set c=d &goto ope3
  333. if "01100101"=="!cho1:~%a%,8!" set c=e &goto ope3
  334. if "01100110"=="!cho1:~%a%,8!" set c=f &goto ope3
  335. if "01100111"=="!cho1:~%a%,8!" set c=g &goto ope3
  336. if "01101000"=="!cho1:~%a%,8!" set c=h &goto ope3
  337. if "01101001"=="!cho1:~%a%,8!" set c=i &goto ope3
  338. if "01101010"=="!cho1:~%a%,8!" set c=j &goto ope3
  339. if "01101011"=="!cho1:~%a%,8!" set c=k &goto ope3
  340. if "01101100"=="!cho1:~%a%,8!" set c=l &goto ope3
  341. if "01101101"=="!cho1:~%a%,8!" set c=m &goto ope3
  342. if "01101110"=="!cho1:~%a%,8!" set c=n &goto ope3
  343. if "01101111"=="!cho1:~%a%,8!" set c=o &goto ope3
  344. if "01110000"=="!cho1:~%a%,8!" set c=p &goto ope3
  345. if "01110001"=="!cho1:~%a%,8!" set c=q &goto ope3
  346. if "01110010"=="!cho1:~%a%,8!" set c=r &goto ope3
  347. if "01110011"=="!cho1:~%a%,8!" set c=s &goto ope3
  348. if "01110100"=="!cho1:~%a%,8!" set c=t &goto ope3
  349. if "01110101"=="!cho1:~%a%,8!" set c=u &goto ope3
  350. if "01110110"=="!cho1:~%a%,8!" set c=v &goto ope3
  351. if "01110111"=="!cho1:~%a%,8!" set c=w &goto ope3
  352. if "01111000"=="!cho1:~%a%,8!" set c=x &goto ope3
  353. if "01111001"=="!cho1:~%a%,8!" set c=y &goto ope3
  354. if "01111010"=="!cho1:~%a%,8!" set c=z &goto ope3
  355. if "01000001"=="!cho1:~%a%,8!" set c=A &goto ope3
  356. if "01000010"=="!cho1:~%a%,8!" set c=B &goto ope3
  357. if "01000011"=="!cho1:~%a%,8!" set c=C &goto ope3
  358. if "01000100"=="!cho1:~%a%,8!" set c=D &goto ope3
  359. if "01000101"=="!cho1:~%a%,8!" set c=E &goto ope3
  360. if "01000110"=="!cho1:~%a%,8!" set c=F &goto ope3
  361. if "01000111"=="!cho1:~%a%,8!" set c=G &goto ope3
  362. if "01001000"=="!cho1:~%a%,8!" set c=H &goto ope3
  363. if "01001001"=="!cho1:~%a%,8!" set c=I &goto ope3
  364. if "01001010"=="!cho1:~%a%,8!" set c=J &goto ope3
  365. if "01001011"=="!cho1:~%a%,8!" set c=K &goto ope3
  366. if "01001100"=="!cho1:~%a%,8!" set c=L &goto ope3
  367. if "01001101"=="!cho1:~%a%,8!" set c=M &goto ope3
  368. if "01001110"=="!cho1:~%a%,8!" set c=N &goto ope3
  369. if "01001111"=="!cho1:~%a%,8!" set c=O &goto ope3
  370. if "01010000"=="!cho1:~%a%,8!" set c=P &goto ope3
  371. if "01010001"=="!cho1:~%a%,8!" set c=Q &goto ope3
  372. if "01010010"=="!cho1:~%a%,8!" set c=R &goto ope3
  373. if "01010011"=="!cho1:~%a%,8!" set c=S &goto ope3
  374. if "01010100"=="!cho1:~%a%,8!" set c=T &goto ope3
  375. if "01010101"=="!cho1:~%a%,8!" set c=U &goto ope3
  376. if "01010110"=="!cho1:~%a%,8!" set c=V &goto ope3
  377. if "01010111"=="!cho1:~%a%,8!" set c=W &goto ope3
  378. if "01011000"=="!cho1:~%a%,8!" set c=X &goto ope3
  379. if "01011001"=="!cho1:~%a%,8!" set c=Y &goto ope3
  380. if "01011010"=="!cho1:~%a%,8!" set c=Z &goto ope3
  381. if "00101100"=="!cho1:~%a%,8!" set c=, &goto ope3
  382. if "00101110"=="!cho1:~%a%,8!" set c=. &goto ope3
  383. if "00101111"=="!cho1:~%a%,8!" set c=/ &goto ope3
  384. if "00111111"=="!cho1:~%a%,8!" set c=? &goto ope3
  385. if "00100111"=="!cho1:~%a%,8!" set c=' &goto ope3
  386. if "00100010"=="!cho1:~%a%,8!" set c=" &goto ope3
  387. if "00111010"=="!cho1:~%a%,8!" set c=: &goto ope3
  388. if "00111011"=="!cho1:~%a%,8!" set c=; &goto ope3
  389. if "01011100"=="!cho1:~%a%,8!" set c=\ &goto ope3
  390. if "01111110"=="!cho1:~%a%,8!" set c=~ &goto ope3
  391. if "01100000"=="!cho1:~%a%,8!" set c=` &goto ope3
  392. if "01000000"=="!cho1:~%a%,8!" set c=@ &goto ope3
  393. if "00100011"=="!cho1:~%a%,8!" set c=# &goto ope3
  394. if "00100100"=="!cho1:~%a%,8!" set c=$ &goto ope3
  395. if "00101101"=="!cho1:~%a%,8!" set c=- &goto ope3
  396. if "01011111"=="!cho1:~%a%,8!" set c=_ &goto ope3
  397. if "00111101"=="!cho1:~%a%,8!" set c== &goto ope3
  398. if "00101011"=="!cho1:~%a%,8!" set c=+ &goto ope3
  399. if "00101000"=="!cho1:~%a%,8!" set c=( &goto ope3
  400. if "00101001"=="!cho1:~%a%,8!" set c=) &goto ope3
  401. if "01011011"=="!cho1:~%a%,8!" set c=[ &goto ope3
  402. if "01011101"=="!cho1:~%a%,8!" set c=] &goto ope3
  403. if "01111011"=="!cho1:~%a%,8!" set c={ &goto ope3
  404. if "01111101"=="!cho1:~%a%,8!" set c=} &goto ope3
  405. if "00101010"=="!cho1:~%a%,8!" set c=* &goto ope3
  406. if not %i%==1 echo "!cho1:~%a%,8!" is not in the database.
  407. set /a v+=1
  408. goto op3
  409. :ope3
  410. set b=%b%%c%
  411. set /a v+=1
  412. goto op3
  413. :end3
  414. cls
  415. set b=%b: =%
  416. set b=%b:`= %
  417. if "%i%"=="1" goto bend4
  418. echo %inp1% became:
  419. echo %b%
  420. echo.
  421. (echo %inp1% became:
  422. echo %b%
  423. echo.
  424. ) >>%fold%%x%.txt
  425. echo %b% >%fold%%x%3.txt
  426. goto opt3
  427.  
Advertisement
Add Comment
Please, Sign In to add comment