> i was trying to understand the netsend code written by Mr. Peter Sass in network monitor project. Can it please be explained what it actually does. I read that it basically is used to inform the admin of any server that can't be reached. But i can't figure that out from the code.
> What i've been able to understand is that netsend username is written to 2 same name files of extensions .dat and .bat. then .dat file is being executed. After that what is fhandle used for?
> If anybody can help. Thanks!
Afternoon from Canada,
The NET SEND command is a MS-DOS windows command that a lot of us network folks
use to send messages to end users across our LAN.
ie: A major application server is off line and the applications that are
running on this server are not available.
So I can from my workstation open up a MS-DOS window and from there issue a
NET SEND command like:
NET SEND * Our accounting server is down. AccPac is currently not available.
So all I am doing in my code is to create a .bat file that I can run with
the RUN command to execute the NET SEND to a specific user ID.
All the fhandle is doing is trying to open the file low level.
If the fhandle returns a value of less that 0 then the file was not created at all
thus the NET SEND failed to this user and moves onto the next userID in the list
returning a .F. value to the calling program to NET SEND to the next user in the
string.
Keep in mind the user may not be logged into the network at the time of the NET SEND command.
The Pinger operates exactly the same way.
I hope this helps you understand the code.
Pete "the IceMan", from the Great White North of Canada.