Get your CPAN on and use Win32::Process found here.
-OzzyOsbourne
In reply to Re: Process ID by OzzyOsbourne in thread Process ID by Anonymous Monk