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

makes a paragraph with a box

87 views
Skip to first unread message

Dr Red

unread,
Jul 9, 2012, 9:50:22 AM7/9/12
to
hi all

GOTO Billy

====================================
I am looking a tool that makes a paragraph of text put a box on out side
the words like a table , but not HTML

====================================
to add in my bat file

Billy .......................... Thanks

Bob

unread,
Jul 9, 2012, 11:49:32 AM7/9/12
to
Dr Red typed the following on 7/9/2012 9:50 AM:
Greetings Dr Red,

If I understand your question correctly then maybe something like the
below will get you started. This is coded by typing as I do not know of
any "tool" that will do this.

Also, I pick up these line from Timo Salmi's FAQ which is posted here on
this news group every Monday. Have a look, great information there.

Note: All lines are indented 2 (two) spaces. Beware the word wrap devil!
I used XP3 for this.


::Start stuff
@echo off

echo
ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄż
echo łhi all
ł
echo ł
ł
echo łGOTO Billy
ł
echo ł
ł
echo ł ====================================
ł
echo ł I am looking a tool that makes a paragraph of text put a box
on out side ł
echo ł the words like a table , but not HTML
ł
echo ł
ł
echo ł====================================
ł
echo ł to add in my bat file
ł
echo ł
ł
echo łBilly .......................... Thanks
ł
echo
ŔÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄŮ
echo Press the Space Bar.
pause>nul
::End Stuff

Bob

unread,
Jul 9, 2012, 12:06:48 PM7/9/12
to
Bob typed the following on 7/9/2012 11:49 AM:
I just copied and pasted my post into a batch file from the news group
for testing and it looks terrible. Dr Red you may need to edit that
script with additional spaces.

Later.

Timo Salmi

unread,
Jul 9, 2012, 12:24:26 PM7/9/12
to
On 09.07.2012 16:50 Dr Red wrote:
> ====================================
> I am looking a tool that makes a paragraph of text put a box on out side
> the words like a table , but not HTML
> ====================================

That is best done with a good text editor that can draw in ASCII. Like
e.g. the Semware Editor.

All the best, Timo

--
Prof. (emer.) Timo Salmi, Vaasa, Finland
http://www.netikka.net/tsneti/homepage.php
Useful CMD script tricks http://www.netikka.net/tsneti/info/tscmd.php

Tom Lavedas

unread,
Jul 9, 2012, 1:06:20 PM7/9/12
to
Or VBScript, as in ...

Const cHor = "Ä", cVert = "³", _
cULCorner = "Ú", cURCorner = "¿", _
cLLCorner = "À", cLRCorner = "Ù"
set con =
CreateObject("Scripting.FileSystemObject").opentextfile("con:", 2)
for each arg in wsh.arguments
s = s & arg & "|"
next
for each line in split(Replace(s & "/", "|/", ""), "|")
if len(line) > l then l = len(line)
next
con.writeline vbnewline & cULCorner & string(l+2, cHor) & cURCorner
for each line in a
con.writeline cVert & " " & line & space(l - len(line) + 1) & cVert
next
con.writeline cLLCorner & string(l+2, cHor) & cLRCorner

The text to be displayed is provided as command line arguments, which
can use vertical bars (|) to deliniate lines withing quoted
arguments. Or separate arguments with spaces. For example, ...

t:\>cscript boxdraw.vbs "This is a paragraph" "with a longer last
line."

or

t:\>cscript boxdraw.vbs "|This is a paragraph|with a longer last
line.|"

The second example puts a black line before and after the paragraph.

This could be converted to a hybrid VBS/batch by ECHOing the script
text into a temproary file and running that script, but I leave that
exercise to the student ;-).
_______________________________________
Tom Lavedas

Harry Vaderchi

unread,
Jul 9, 2012, 4:32:14 PM7/9/12
to
On Mon, 09 Jul 2012 17:06:48 +0100, Bob <no_e...@unsound.unfit> wrote:

> Bob typed the following on 7/9/2012 11:49 AM:
>> Dr Red typed the following on 7/9/2012 9:50 AM:
>>> hi all
>>>
>>> GOTO Billy
>>>
>>> ====================================
>>> I am looking a tool that makes a paragraph of text put a box on out
>>> side
>>> the words like a table , but not HTML
>>>
>>> ====================================
>>> to add in my bat file
>>>
>>> Billy .......................... Thanks
>>>
>> Greetings Dr Red,
>>
>> If I understand your question correctly then maybe something like the
>> below will get you started. This is coded by typing as I do not know of
>> any "tool" that will do this.
>>
>> Also, I pick up these line from Timo Salmi's FAQ which is posted here on
>> this news group every Monday. Have a look, great information there.
>>
>> Note: All lines are indented 2 (two) spaces. Beware the word wrap devil!
>> I used XP3 for this.
>>
>>
>> ::Start stuff
>> @echo off
>>
>> echo
>> ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
>>
>> echo ³hi all ³
>> echo ³ ³
>> echo ³GOTO Billy ³
>> echo ³ ³
>> echo ³ ==================================== ³
>> echo ³ I am looking a tool that makes a paragraph of text put a box
>> on out side ³
>> echo ³ the words like a table , but not HTML ³
>> echo ³ ³
>> echo ³==================================== ³
>> echo ³ to add in my bat file ³
>> echo ³ ³
>> echo ³Billy .......................... Thanks ³
>> echo
>> ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
>>
>> echo Press the Space Bar.
>> pause>nul
>> ::End Stuff
>
> I just copied and pasted my post into a batch file from the news group
> for testing and it looks terrible. Dr Red you may need to edit that
> script with additional spaces.
>
> Later.
>

Simply use msgbox (small download)
or net send %username% "message"

if using NT or greater.


--
[dash dash space newline 4line sig]

Albi CNU

foxidrive

unread,
Jul 9, 2012, 4:54:48 PM7/9/12
to
On Tuesday 10/07/2012 06:32, Harry Vaderchi wrote:

> Simply use msgbox (small download)
> or net send %username% "message"
>
> if using NT or greater.

JFTR: net send is not available in my Win 7 machine.


Microsoft Windows [Version 6.1.7601]
Copyright (c) 2009 Microsoft Corporation. All rights reserved.

c:\>net send /?
The syntax of this command is:

NET
[ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |
HELPMSG | LOCALGROUP | PAUSE | SESSION | SHARE | START |
STATISTICS | STOP | TIME | USE | USER | VIEW ]



--
Mic


Tom Lavedas

unread,
Jul 9, 2012, 4:59:23 PM7/9/12
to
It was replaced with msg.exe, which posts to a GUI, instead.
______________________________
Tom Lavedas

foxidrive

unread,
Jul 9, 2012, 5:06:45 PM7/9/12
to
Thanks Tom.

--
Mic


Harry Vaderchi

unread,
Jul 10, 2012, 5:08:31 AM7/10/12
to
[XP Pro]


C:\WINDOWS>net /?
The syntax of this command is:


NET [ ACCOUNTS | COMPUTER | CONFIG | CONTINUE | FILE | GROUP | HELP |
HELPMSG | LOCALGROUP | NAME | PAUSE | PRINT | SEND | SESSION |
SHARE | START | STATISTICS | STOP | TIME | USE | USER | VIEW ]

NAME PRINT SEND dropped.

Harry Vaderchi

unread,
Jul 10, 2012, 5:12:47 AM7/10/12
to
On Mon, 09 Jul 2012 21:59:23 +0100, Tom Lavedas <tglb...@verizon.net>
wrote:
Well "msg" seems to be here in XP; it seems to be the same as "net send"
at first glance

foxidrive

unread,
Jul 10, 2012, 5:51:43 AM7/10/12
to
On Tuesday 10/07/2012 02:24, Timo Salmi wrote:
> On 09.07.2012 16:50 Dr Red wrote:
>> ====================================
>> I am looking a tool that makes a paragraph of text put a box on out side
>> the words like a table , but not HTML
>> ====================================
>
> That is best done with a good text editor that can draw in ASCII. Like
> e.g. the Semware Editor.

+1

The Semware editor is good for that. I have the earlier 16 bit MSDOS version called Qedit which is still handy for such things.


--
Mic


Dr Red

unread,
Jul 21, 2012, 9:05:55 PM7/21/12
to
so can i do it in notepad
then?


GOTO


thanks U all

0 new messages