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

Launching WinBatch and Other Apps
plus

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

How to Launch WB to Display a Message on a Remote Workstation

Keywords:     display remote display

Question:

How would I display a banner or message box on a remote workstation? And is there a way to send a network message from a Winbatch script, running on a server, to an NT group of users ?

Answer:

I haven't seen any good way. I seen schemes where all the workstations are running WinBatch scripts with a loop and a TimeDelay monitoring some server file every few seconds, and if the file comes into existance, then pop up a message.

You'd either have to have the WinBatch interpreter installed on the remote PC(s), or have a compiled WinBatch EXE on the machine(s).

Either the WBT or EXE on the remote machine would have to be running all the time in a While loop.

The WinBatch script on the LOCAL machine would copy a file to the remote machine, when you're ready to display the message on the REMOTE workstation.

The WinBatch script on the REMOTE machine would be looking for a file to appear in this continuous While loop, and once it shows up, it could put up a message box with the Message function, or you could use the Boxes functions to display a banner.

When you've finished doing what you need to do, then you can delete the flag file on the remote machine. Something like:

;local Winbatch script - first map to remote PC, then copy the file:
	AddExtender("WWW9534I.DLL")
	w95AddDrive(@default,@default,"\\SERVER\PUB","x:",@false)
	  FileCopy("c:\localdir\flagfile.txt", "x:\flagfile.txt",  @false)
	w95CancelCon("x:",@false,@false)
	      
And now for the remote script:
	
	while @true		;run all the time
	  if FileExist("flagfile.txt")==1 then Message("USER ALERT", "DON'T TOUCH THE KEYBOARD")
	  FileDelete("flagfile.txt")
	endwhile

Article ID:   W13270
Filename:   Launch Winbatch on a Remote PC.txt
File Created: 2001:03:01:14:34:14
Last Updated: 2001:03:01:14:34:14