Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Max Length of a "net send" message

Posted on 2004-09-28
2
Medium Priority
?
542 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
2 Comments
 
LVL 85

Accepted Solution

by:
oBdA earned 2000 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 85

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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

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…
Explore the ways to Unlock VBA Project Password Excel 2010 & 2013 documents. Go through the article and perform the steps carefully to remove VBA Excel .xls file.
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …
Is your data getting by on basic protection measures? In today’s climate of debilitating malware and ransomware—like WannaCry—that may not be enough. You need to establish more than basics, like a recovery plan that protects both data and endpoints.…

618 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