[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 545
  • Last Modified:

Max Length of a "net send" message

Good afternoon,

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

Thanks,
Tony
0
fattumsdad
Asked:
fattumsdad
  • 2
1 Solution
 
oBdACommented:
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
 
oBdACommented:
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

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now