Win32::Process allows you to create process that are controllable.
This is all detailed in Dave Roth's book Win32 Perl Programming.

There is also an example in the active perl documentation.  I have pasted it
below

        Win32::Process::Create($ProcessObj,
                                "D:\\winnt35\\system32\\notepad.exe",
                                "notepad temp.txt",
                                0,
                                NORMAL_PRIORITY_CLASS,
                                ".")|| die ErrorReport();
        $ProcessObj->Suspend();
        $ProcessObj->Resume();
        $ProcessObj->Wait(INFINITE);

This creates an instance on notepad at a normal priority with a file temp.txt
as it's arguments. It is created in the current directory.  It refer's to
notepad as $ProcessObj.
My boss is shouting at me so you will have to get the rest from elsewhere.


Veeraraju_Mareddi wrote:

> Dear Team,
>
> Is there any way to kill a process/Object in a specified time ,if it is not
> completed for Windows NT?.
>
> Even doing some other action is also helpful, when it is not finished in a
> finite time.
>
> Please tell me your valuable suggestions .
>
> Thank you each & every one of you..
>
> With Best Regards
> Rajuveera.
>
> **************************************************************************
> This email (including any attachments) is intended for the sole use of the
> intended recipient/s and may contain material that is CONFIDENTIAL AND
> PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
> distribution or forwarding of any or all of the contents in this message is
> STRICTLY PROHIBITED. If you are not the intended recipient, please contact
> the sender by email and delete all copies; your cooperation in this regard
> is appreciated.
> **************************************************************************
> _______________________________________________
> Perl-Win32-Admin mailing list
> [EMAIL PROTECTED]
> http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin

--
Dexter Casey
FA&O IT Support



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

Reply via email to