Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Digital display for batch files:

14 views
Skip to first unread message

zeez

unread,
May 13, 2012, 2:20:10 AM5/13/12
to
(best viewed in monospace)



@echo off
:: -------disp.bat-------
echo.
echo. %sbl% %e1%%e1%%e1%%e1%%e1% %d1%%d1%%d1%%d1%%d1%
echo. %sbl% %e2%%e2% %e3%%e3% %d2%%d2% %d3%%d3%
echo. %sbl% %e2%%e2% %e3%%e3% %d2%%d2% %d3%%d3%
echo. %sbl% %e4%%e4%%e4%%e4%%e4% %d4%%d4%%d4%%d4%%d4%
echo. %sbl% %e5%%e5% %e6%%e6% %d5%%d5% %d6%%d6%
echo. %sbl% %e5%%e5% %e6%%e6% %d5%%d5% %d6%%d6%
echo. %sbl% %e7%%e7%%e7%%e7%%e7% %d7%%d7%%d7%%d7%%d7%
echo.

@echo off
:: ----------d1.bat----------
set e1=%1
set e2=%2
set e3=%3
set e4=%4
set e5=%5
set e6=%6
set e7=%7



@echo off
:: ---------d2.bat---------
set d1=%1
set d2=%2
set d3=%3
set d4=%4
set d5=%5
set d6=%6
set d7=%7


example :

d1 # . # .# . #
d2 . . # . . # .
disp

displays "21"





zeez

unread,
May 13, 2012, 2:23:40 AM5/13/12
to
> d1 # . # . # . #

foxidrive

unread,
May 14, 2012, 7:24:53 PM5/14/12
to
On 13/05/2012 4:20 PM, zeez wrote:
> (best viewed in monospace)

> example :
>
> d1 # . # .# . #
> d2 . . # . . # .
> disp
>
> displays "21"

I get a small mess.

http://www.freeimagehosting.net/zajkc


--
Mic

zeez

unread,
May 14, 2012, 8:53:56 PM5/14/12
to
I didn't notice the trailing spaces after the set lines. That is what
was messing it up.

corrected versions of d1/d2

@echo off
:: ----------d1.bat----------
set e1=%1
set e2=%2
set e3=%3
set e4=%4
set e5=%5
set e6=%6
set e7=%7


@echo off
:: ----------d2.bat----------

zeez

unread,
May 14, 2012, 8:46:11 PM5/14/12
to
On May 14, 3:24 pm, foxidrive <foxidr...@gotcha.woohoo.invalid> wrote:
Didn't notice the trailing spaces in the set lines. That's what
messed it up

@echo off
:: -------disp.bat-------
echo.
echo. %sbl% %e1%%e1%%e1%%e1%%e1% %d1%%d1%%d1%%d1%%d1%
echo. %sbl% %e2%%e2% %e3%%e3% %d2%%d2% %d3%%d3%
echo. %sbl% %e2%%e2% %e3%%e3% %d2%%d2% %d3%%d3%
echo. %sbl% %e4%%e4%%e4%%e4%%e4% %d4%%d4%%d4%%d4%%d4%
echo. %sbl% %e5%%e5% %e6%%e6% %d5%%d5% %d6%%d6%
echo. %sbl% %e5%%e5% %e6%%e6% %d5%%d5% %d6%%d6%
echo. %sbl% %e7%%e7%%e7%%e7%%e7% %d7%%d7%%d7%%d7%%d7%
echo.

@echo off
:: ----------d1.bat----------
set e1=%1
set e2=%2
set e3=%3
set e4=%4
set e5=%5
set e6=%6
set e7=%7

@echo off
:: ----------d2.bat----------
set d1=%1
set d2=%2
set d3=%3
set d4=%4
set d5=%5
set d6=%6
set d7=%7

also

d1 # . # # # . #

foxidrive

unread,
May 14, 2012, 9:57:12 PM5/14/12
to
Mine didn't have trailing spaces. Even with these it's cockeyed - same as the image I posted.


--
Mic

Todd Vargo

unread,
May 15, 2012, 12:03:35 AM5/15/12
to
There are no trailing spaces. The following command line...

d1 # . # .# . #

Should have been this...

d1 # . # . # . #

And the output should look like this...

##### .....
.. ## .. ##
.. ## .. ##
..... .....
## .. .. ##
## .. .. ##
##### .....


--
Todd Vargo
(Post questions to group only. Remove "z" to email personal messages)

foxidrive

unread,
May 15, 2012, 12:45:26 AM5/15/12
to
If I stretch my imagination (and a monospace font) I can see a 21. :)

http://www.freeimagehosting.net/tjrey


--
Mic

Todd Vargo

unread,
May 15, 2012, 6:43:24 AM5/15/12
to
The font is similar to the routing number printed on checks.
0 new messages