Page 1 of 1 1
Topic Options
#58 - 1999-06-02 05:06 PM SENDMESSAGE
Anonymous
Unregistered


I have this script to notify me when a user's HD gets below 50meg. I can not get it to send a message. I can use Winpopup.exe and send messages back and forth from Win95 to Win95, but how does sendmessage get it's message to an NT machine. Where does it show up?

CLS

$FREE=GetDiskSpace(c:\)
IF $FREE>100000 GOTO GIG
ELSE
?"$FREE"+" KB of Free Space on Drive C:"?
IF $FREE<50000 GOTO WARN
ELSE
GOTO STOP
:GIG
?"$FREE"+" MB of Free Space on Drive C:"?
GOTO STOP
:WARN
?"YOU ONLY HAVE $FREE KB OF SPACE LEFT ON YOUR COMPUTER."
?"PLEASE CALL THE HELP DESK AT X4910!"?
SENDMESSAGE("HELPDESK",@USERID+", has $FREE KB left on Drive C:")
:STOP
QUIT

Gracias

------------------
Tony Reno
renoa@rfa.org

Top
#59 - 1999-06-03 02:09 AM Re: SENDMESSAGE
Anonymous
Unregistered


Tony,

Two possibilities:

code:

$recipient = "helpdesk" ;NT-username or machine name.
$message = "whatever"
SHELL ("cmd.exe /c net send $recipient $message")


Another option is to send a file to an email address by using blat.exe
Write a textfile with message, send textfile to helpdesk@domain.com.

------------------
With kind regards,
Taco Ditiecher.

Top
#60 - 1999-06-03 04:00 AM Re: SENDMESSAGE
Anonymous
Unregistered


"HELPDESK" Is that a Computer or a Group ?

The Recipient can only be a PC or User and not a Group..

This will work:

SENDMESSAGE("[PC/User name]"," @USERID, has $FREE KB left on Drive C:")

------------------
Lon Geefshuysen
Lon_Geefshuysen@essentium.com


Top
#61 - 1999-06-03 07:32 AM Re: SENDMESSAGE
Anonymous
Unregistered


Thank you both for the reply....I wasn't sure about the group, but I had tried workstations and usernames, both with failure.

Where can I get blat.exe?
Also, my 95 machine do not have NET SEND....I have all the other NET functions like VIEW, but it says SEND is unknown.

Any ideas?

------------------
Tony Reno
renoa@rfa.org

Top
#62 - 1999-06-04 02:32 AM Re: SENDMESSAGE
Anonymous
Unregistered


Blat.exe (NT/95) can be found here:
www.interlog.com/~tcharron/blat.html

------------------
With kind regards,
Taco Ditiecher.

Top
#63 - 2002-01-23 07:19 PM Re: SENDMESSAGE
mdby22@hotmail.com Offline
Fresh Scripter

Registered: 2002-01-22
Posts: 19
Loc: Chicago
I want to send a message to a group
is there a way to write the kix like this
start program
ask for user input "what message would you like to send"
then sends the message to the group already specified?

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 633 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.053 seconds in which 0.027 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org