Hello Rajeev,

If you just want to hide the DOS console then you can use the following at
the beginning of the script to hide it:

     use Win32::GUI; BEGIN
{Win32::GUI::Hide(scalar(Win32::GUI::GetPerlWindow()))};

                         OR

If you want to run the script as a Windows service then see
http://www.roth.net/perl/scripts/scripts.asp?DirMon.pl

hope this helps...

Regards,

Sumit.


                                                                                       
                            
                    "Rajeev                                                            
                            
                    Rumale"              To:     <[EMAIL PROTECTED]>                  
                            
                    <rajeev@myange       cc:                                           
                            
                    l.com>               Subject:     Running Perl script as Service 
on win2k                      
                                                                                       
                            
                    05-06-2002                                                         
                            
                    09:24 AM                                                           
                            
                                                                                       
                            
                                                                                       
                            




Hi,

I have a perl script which runs as server/demon and needs to be runing
always.

currently I am starting the script using a batch file.  But doing this it
pops up a window.  and if some user closes the window the script stops.
Also the pop up window is bit annoying and it makes no sense for users.

I wonder if there is any way we can run this as a service on win2k machine.
As per my understanding this will not pop up a window.

I would appriciate if some one the tell me how to run the perl script (or
the batch file) as a service on win2k.

regards

Rajeev




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to