The one problem with this is that you are limited (on pre XP machines) such
that you must indicate the correct user/machine name in the $From_Machine
variable. This prevents you from being able to send a net message looking
like it is coming from another user/machine. Pre XP machines will let you do
this only if you write to the NetBIOS interface directly.

dave

-----Original Message-----
From: tony.o'[EMAIL PROTECTED] [mailto:tony.o'[EMAIL PROTECTED]] 
Sent: Friday, December 07, 2001 1:20 PM
To: [EMAIL PROTECTED]
Subject: Re: Question



Here is one way you can do that:

use Win32::Lanman;
Win32::Lanman::NetMessageBufferSend("\\\\$Target_Machine",
$Username_On_Target_Machine, $From_Machine, "Hello,
$Username_On_Target_Machine! This is a message from $From_Machine" );





 

                    [EMAIL PROTECTED]

                    Sent by:                                   To:
[EMAIL PROTECTED]                           
                    [EMAIL PROTECTED]      cc:

                    eState.com                                 Subject:
Question                                                       
 

 

 

                    12/06/01 03:18 AM

 

 




Hi all,

could you give me a hint to simulate the net send command


thanks

_______________________________________________
Perl-Win32-Admin mailing list [EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin




_______________________________________________
Perl-Win32-Admin mailing list [EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
_______________________________________________
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin

Reply via email to