Advertisement
Guest User

Untitled

a guest
Aug 29th, 2015
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. @Echo Off
  2. Call :Color A "##" \n E "" C " 21 " E "!" \n B "##" \n
  3. Pause >Nul
  4. Exit /B
  5.  
  6. :Color
  7. Subst `: "!Temp!" >Nul &`: &Cd \
  8. SetLocal DisableDelayedExpansion
  9. If Not Exist `.7 (
  10. Echo(|(Pause >Nul &Findstr "^" >`)
  11. Set /P "=." >>` <Nul
  12. For /F "delims=;" %%# In (
  13. '"Prompt $H;&For %%_ In (_) Do Rem"') Do (
  14. Set /P "=%%#%%#%%#" <Nul >`.3
  15. Set /P "=%%#%%#%%#%%#%%#" <Nul >`.5
  16. Set /P "=%%#%%#%%#%%#%%#%%#%%#" <Nul >`.7))
  17. :__Color
  18. Set "Text=%~2"
  19. If Not Defined Text (Set Text=^")
  20. SetLocal EnableDelayedExpansion
  21. Set /P "LF=" <` &Set "LF=!LF:~0,1!"
  22. For %%# in ("!LF!") Do For %%_ In (
  23. \ / :) Do Set "Text=!Text:%%_=%%~#%%_%%~#!"
  24. For /F delims^=^ eol^= %%# in ("!Text!") Do (
  25. If #==#! EndLocal
  26. If \==%%# (Findstr /A:%~1 . \` Nul
  27. Type `.3) Else If /==%%# (Findstr /A:%~1 . /.\` Nul
  28. Type `.5) Else (Echo %%#\..\`>`.dat
  29. Findstr /F:`.dat /A:%~1 .
  30. Type `.7))
  31. If "\n"=="%~3" (Shift
  32. Echo()
  33. Shift
  34. Shift
  35. If ""=="%~1" Goto :Eof
  36. Goto :__Color
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement