Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
NetSend
Message
From
27/10/2003 14:10:03
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Title:
Miscellaneous
Thread ID:
00843104
Message ID:
00843192
Views:
30
Yes, I'm using that approach.

What I'm doing is an "automatic" shutdown, my app has a timer for updating its statusbar, now I'm using it to check for a file, if the file is is present I began telling the user to log out for 5 or 10 minutes each 60 seconds (the file content provides the message and the time limit), then shutting down the app.

I just wanted to use the "net send" for the messaging so it will be "outside" VFP, no references to clean.
I'm going to use a non modal form, etc but surely netsend is better for these task.


>I used to use the following to send a message to particular user when she/he works with user interface. Probably it may help you too.
>FoxPro application contains a timer looking for a file with specified name. If sys(0) meets the file name, then file contents is displayed.
>
>
>>It works, but shows the ugly black DOS box, any wait of avoiding it?
>>
>>>Whether this does not do it?
>>>net send _user _message
>>>
>>>>Hi All
>>>>
>>>>I'm using a function written by Christof Lange in Nov. 2001 FoxPro Advisor, it allows broadcasting messages using the mailslot\messngr, it looks like that the NET SEND command uses the same mechanism and it works very well.
>>>>The inner working is explained too in the fox wiki, search for "AfasterwaytoNETSEND"
>>>>
>>>>My problem is, I want to send a message to just one user and the actual implementation sends it to all users in the target machine, as some of our customers use Terminal Services, all of them are receiving the broadcast.
>>>>
>>>>Somebody knows how to broadcast a message to just one user in a given machine?
>>>>
>>>>Thanks in advance,
Maria E. Zambrano
Previous
Reply
Map
View

Click here to load this message in the networking platform