doulostheou
Registered User.
- Local time
- Today, 04:41
- Joined
- Feb 8, 2002
- Messages
- 314
I am working on a function that uses the net send command in Dos to send out a message to our unit. It works fine, but in DOS there is no way to send the message to a selected group of users. There are around 70 computers that I want to be able to send a message to without using net send * to send it to the whole network domain. So I used a loop:
Call Shell("net send " & NetName & " " & Message)
This works, but it opens a dos window for each of the 70 computers (not very efficient). This is especially inefficient since when a computer is turned off, there is a stall while dos determines they are not there. I can think of two solution, but I don't know how to go about either of them.
1) Is there a way to continue to use one dos window to send the message repeatedly?
2) If not, can I somehow slow down the code so it will finish working with one Dos window before looping and starting a new one.
Call Shell("net send " & NetName & " " & Message)
This works, but it opens a dos window for each of the 70 computers (not very efficient). This is especially inefficient since when a computer is turned off, there is a stall while dos determines they are not there. I can think of two solution, but I don't know how to go about either of them.
1) Is there a way to continue to use one dos window to send the message repeatedly?
2) If not, can I somehow slow down the code so it will finish working with one Dos window before looping and starting a new one.