WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Novell Netware
plus
plus
plus
plus
plus
plus
plus
plus
plus
plus

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

n4SendMsgAll Sends a Blank Message

Keywords: 	 n4SendMsgAll

Question:

I wanted to write a script that would allow me to send a message to everyone on multiple Netware servers. This is so I would not have to rconsole in to each server to send the message.

When running the following code, a blank message is always sent out first, then the message is sent to each of the servers selected.

I am using a dialog box to get the message and the selected servers. Any idea on why the blank message appears?

If checkserv1 == 1 then
sendserv = strcat(sendserv,@TAB,serv1)
Endif
If checkserv2 == 1 then
sendserv = strcat(sendserv,@TAB,serv2)
Endif
If checkserv1 == 0 && checkserv2 ==0 then
Display(3,"Error","You have not selected a server!")
Goto Question
Endif

;********************************************************************
;Sends the popup message

sendserv = strtrim(sendserv)
count = ItemCount(sendserv, @TAB)
for i = 1 to count
rootserv = ItemExtract(i, sendserv, @TAB)
n4MsgSendAll(rootserv, messag)
next
I am writing scripts with Winbatch 2000. On my local machine I am running Windows NT 4.0 SP5 with the Novell 4.81 client. The current Netware version is 4.11. The version of the wwn4x34i.dll is 34000.

Everyone gets the blank message and then the message I was originally trying to send. This happens about 75% of the time.

Answer:

Nothing in your code looks wrong. I tested a more fully fleshed out version of it against NetWare v5.1, v4.2 and v3.12, using V35000 of the wwn4x34i extender, running on Win2K Pro SP2 with Novell Client v4.8.

Here are the results:

When calling n4MsgSendAll() w/the NetWare v5.1 server, I could not get any blank messages to show up.

When calling n4MsgSendAll() w/the NetWare v4.2 and v3.12 servers, I would occasionally get a blank broadcast message in addition to the one that contained the actual message text that I had sent out. It was very inconsistent w/respect to how often it happens. I could not make it happen reliably enough to make an attempt at running the code through the debugger to see if anything strange is going on in the n4 extender.

Some research on Novell's support site, along with some Google searches, did not turn up anything that clearly identifies the source of this problem. Possible sources include a bug in NWPOPUP.EXE or in the Novell Client software, but nothing definitive was called out in the various postings & articles that I read. I sent an email message to one guy in the Netherlands who also had a similar problem. The message hasn't bounced back as undeliverable, so I'm hoping that he'll be able to reply and that perhaps he found out what was causing the problem.

I'll do some more digging around in the Novell Support Connection forums to see if I can find out what's going on here.


Article ID:   W15212
File Created: 2002:09:05:13:50:36
Last Updated: 2002:09:05:13:50:36