Guest User

Untitled

a guest
May 30th, 2026
77
0
Never
5
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.42 KB | Source Code | 0 0
  1. :: display a bar the width of the console window
  2. :: %BAR% [DisplayMessage]
  3.  
  4. (SET \n=^^^
  5. %= This defines an escaped Line Feed - DO NOT ALTER =%
  6. )
  7.  
  8. SET BAR=FOR %%# IN (1 2)DO IF %%#==2 (%\n%
  9. FOR /L %%# IN (1,1,8)DO SET b=!b!!b!~~%\n%
  10. SET b=!b!!##! %\n%
  11. FOR /F tokens^^^=2 %%# IN ('MODE CON ^^^| FIND "Columns"')DO ^<NUL SET/P=!b:~-%%#!%\n%
  12. ENDLOCAL%\n%
  13. )ELSE SETLOCAL EnableDelayedExpansion^&SET ##=
  14.  
  15. ::by CirothUngol
Tags: batch
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment