Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Networking
cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple line messages in net send command

John Griffiths_2
Occasional Contributor

Multiple line messages in net send command

How can I put line breaks/carriage returns in to a message that I want to send via net send? - is there a standard line break representation that can be included in command line arguments?
4 REPLIES
Wodisch
Honored Contributor

Re: Multiple line messages in net send command

Hello,

since we are able to send mulit-line messages
to Windows boxes from UNIX using CIFS/9000 or
Samba, it is possible to receive them, at least
;-)

But I am not quite sure about the "net send"
command being bale to actually send it, as that
command has to be started from the "cmd.exe"
interpreter - and that one does only allow up
to 127 character/single line commands :-(

You coult try to write your own "net send"
command, though (or to port "smbclient" from
the OpenSource product "Samba")...

HTH,
Wodisch
Volker Borowski
Honored Contributor

Re: Multiple line messages in net send command

Hi John,

I was able to send at least 895 characters to a station, but the font is a non-monospaced one, so there is no way to play around with blank padding !

May be you need to extract a systemcall and feed it from a small C-program.

Volker
Volker Borowski
Honored Contributor

Re: Multiple line messages in net send command

Wodisch
Honored Contributor

Re: Multiple line messages in net send command

Hello again, John,

with a little luck I just tested the "smbclient" for Win32
and it is doing what you want and FREE...
Extract it a directory which is included in your PATH
and give it try with

smbclient -M target < file-with-many-lines

See attached file.

HTH,
Wodisch