469,315 Members | 1,802 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,315 developers. It's quick & easy.

Pop up Message in PERL

Hi All,

I have a query

Is it possible in PERL to popup a message?
I have a requirement like this:
Copy a file from a location and once the copy is complete pop up a message to the user that Successfully copied the file...(as the copying file script is scheduled in the scheduler...user dont want to refer to the log files). I can think of sending mails...but i feel sending mails is not feasible for such a small requirement.

Till now i haven't tried something like this...I just started seraching for this, if this is possible then please let me know.

Thanks in advance.
Regards
Pramod
Mar 10 '08 #1
5 14945
nithinpes
410 Expert 256MB
For sending Windows pop-up messages, you can make use of Net::NetSend module.
Mar 10 '08 #2
I am able to achieve this using Perl TK.
here is the code:

Expand|Select|Wrap|Line Numbers
  1. use Tk;
  2. use strict;
  3.  
  4. # Main Window
  5. my $mw = new MainWindow;
  6. $mw -> messageBox(-message=>"Successfully Copied the File");
  7.  
Thanks for everyone.
Regards
Pramod
Mar 12 '08 #3
savanm
85
I am able to achieve this using Perl TK.
here is the code:

Expand|Select|Wrap|Line Numbers
  1. use Tk;
  2. use strict;
  3.  
  4. # Main Window
  5. my $mw = new MainWindow;
  6. $mw -> messageBox(-message=>"Successfully Copied the File");
  7.  
Thanks for everyone.
Regards
Pramod

Another way to do this using win32 Module

Expand|Select|Wrap|Line Numbers
  1. use Win32;
  2. Win32::MsgBox("Successfully copied");
  3.  
Mar 12 '08 #4
Another way to do this using win32 Module

Expand|Select|Wrap|Line Numbers
  1. use Win32;
  2. Win32::MsgBox("Successfully copied");
  3.  
Hey Thanks Savan. This is more useful. With TK it was opening some unwanted window in the background. This is what I wanted.
Thanks.
Pramod
Mar 13 '08 #5
savanm
85
Hey Thanks Savan. This is more useful. With TK it was opening some unwanted window in the background. This is what I wanted.
Thanks.
Pramod

Hi

Expand|Select|Wrap|Line Numbers
  1.  
  2. Welcome.. Carry on Mr.promoth.
  3.  
  4.  
Mar 17 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

6 posts views Thread by John Smith | last post: by
13 posts views Thread by Wayne Folta | last post: by
3 posts views Thread by John Smith | last post: by
4 posts views Thread by billb | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.