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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Message of the Day!

Status
Not open for further replies.

Steve1962

Technical User
Jul 1, 2003
34
GB
I'm sure this will be a simple one to help me with. Is there a piece of software out there that will check a text file for content, on a network. If it contains text, then send a message to all clients on the network using this text and wait for the user to respond by clicking a button onscreen. Kind of like a 'message of the day' program, an upgrade from 'net send' perhaps! :)
(Using Server 2000 / Win2k and XP Pro Clients).
 
Set objFSO = CreateObject("Scripting.FileSystemObject")
' Use UNC or file path to text document
Set objFile = objFSO.OpenTextFile("C:\message.txt", 1)

Do Until objFile.AtEndOfStream
strCharacters = strCharacters & vbCrlf & objFile.ReadLine
Loop
' Output message to logon users
Wscript.Echo strCharacters

P
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top