Solved

Max Length of a "net send" message

Posted on 2004-09-28
2
532 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 82

Accepted Solution

by:
oBdA earned 500 total points
Comment Utility
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 82

Expert Comment

by:oBdA
Comment Utility
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

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

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…
A safe way to clean winsxs folder from your windows server 2008 R2 editions
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

771 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now