General information
Category:
Coding, syntax & commands
Something like this:
lclogfile="c:\log.txt"
lcRunFile = "NET SEND" + " " + lcSendTo + " " + lcMessage+" > "+lclogfile
RUN /N7 &lcRunFile
if left(filetostr(lclogfile),8)="An error"
*NOT SENT
endif
>Hi,
>
>Is there a way to determine whether a Net Send command reached its destination. I have the follwing code in a command button
>
>LOCAL lcMessage, lcSendTo, lcRunFile
>WITH THIS
> lcMessage = ALLTRIM(.txtMessage.Value)
> lcSendTo = ALLTRIM(nusers.cipaddr)
> lcRunFile = "NET SEND" + " " + lcSendTo + " " + lcMessage
>
> RUN /N7 &lcRunFile
>ENDWITH
>RELEASE lcMessage, lcSendTo, lcRunFile
>
>When Net Send is successfull it gives a message that the message was sent succesfully, but how do you cature an unsuccesfull message transmission. For example when the user you are net sending is not logged on the network.
>
>Any suggestions are appreciated.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only