Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Message over NT

Status
Not open for further replies.

amersanjak

IS-IT--Management
Mar 15, 2004
5
0
0
US
Hi,

How can I send message to a workstation on my NT network using VFP 8.0

thanks,
Amer


 
Here's a quick and dirty.

Darrell

Code:
=SendNetMsg("MachineName","Hello")

procedure SendNetMsg
  lparam cWkStation, cMessage
  oWshShell = createobject("WScript.Shell")
  oWshShell.run("Net Send "+cWkStation+" "+cMessage,0,.f.)
endproc
 
Hi Darrell,

Thank you for your feedback, I run this code, It didn't work, is there is something I am missing?

Thank gain,
amer

 
amer,
Did you change "MachineName" to the real user you were trying to send it to? Does the sending machine have WSH (Windows Script Host) installed and not restricted?

At a command prompt (in a 'DOS' Window), try just:
Code:
Net Send <MachineName> Hello

Rick
 
Here's something that may be of interest:

This problem occurs when one of the following conditions is true:
• The source computer is running Microsoft Windows XP SP2.
• The destination computer is running Microsoft Windows XP SP2.
As a result, the destination computer does not receive the messages that are sent by the NET SEND command.

-Dave Summers-
[cheers]
Even more Fox stuff at:
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top