Solved

Max Length of a "net send" message

Posted on 2004-09-28
2
535 Views
Last Modified: 2010-05-18
Good afternoon,

Was is the max length of a "net send" message from user to user in a Win 2K environment?

Thanks,
Tony
0
Comment
Question by:fattumsdad
  • 2
2 Comments
 
LVL 83

Accepted Solution

by:
oBdA earned 500 total points
ID: 12173993
895 (at least on NT4, W2k, XP).
If you want to test it yourself, you can run this script in a command window. It will send a "net send" message in an endless loop, incrementing the message length in steps of 10 (until you hit <ctrl-c>), displaying the current length. Let it send (and click away ...) the messages until it will stop adding characters.

====8<----[NetSendTest.cmd]----
@echo off
setlocal
set Length=0
set Msg=
:loop
set /a Length+=10
set Len=%Length%
if %Length% LSS 100 set Len=0%Len%
if %Length% LSS 1000 set Len=0%Len%
set Msg=%Msg%......%Len%
echo Length: %Length%
net send %computername% %Msg% >NUL
set /a i+=1
pause >NUL
goto :loop
====8<----[NetSendTest.cmd]----
0
 
LVL 83

Expert Comment

by:oBdA
ID: 12174004
While I just see it, you can of course dispose of the "set /a i+=1" line; that's a leftover from an earlier version ...
0

Featured Post

The Eight Noble Truths of Backup and Recovery

How can IT departments tackle the challenges of a Big Data world? This white paper provides a roadmap to success and helps companies ensure that all their data is safe and secure, no matter if it resides on-premise with physical or virtual machines or in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
When you have clients or friends from around the world, it becomes a challenge to arrange a meeting or effectively manage your time. This is where Outlook's capability to show 2 time zones in one calendar comes in handy.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question