Bill, Thank you very much for this!
It seems to work cross-user context, but, it reports the path of how the process was started. So if I run 'notepad' from a prompt, the program will just come back with 'notepad', when what I really need to get at is where the binary is running from (c:\windows\system32\notepad.exe). I guess I should have been more clear with my question. Any ideas? I know this is possible because I have a 3rd party app that does just that. Thanks, Darin -------------------------------------------- Darin Cruickshanks Lab Support Manager, Computing Service University of Essex 01206 873585 -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bill Luebkert Sent: 28 April 2008 09:59 To: perl-win32-admin@listserv.ActiveState.com Subject: Re: Process information Cruickshanks, Darin wrote: > Hi, > > > > I'm trying to find out what a particular process's start path is - > 'c:\myprocess.exe' for example. I tried using Win32::Process::Info, > which works fine unless you are trying to find out the process > information of a process that is running in a different user context. > > For example - > > I run my Perl script as administrator on a PC, someone then logs on as a > different user and runs MSWORD. My program would not be able to return > the start path for MSWORD (c:\program files\msoffice......), but strangely > most of the other info that Win32::Process::Info returns will be > available. Does anyone know why this is or know of any other module to > get at the process start path? You could try WMI (not sure if it will improve results) - sample test script sent off list. _______________________________________________ Perl-Win32-Admin mailing list Perl-Win32-Admin@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs _______________________________________________ Perl-Win32-Admin mailing list Perl-Win32-Admin@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs