ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> perl-win32-admin
perl-win32-admin
Re: Process information
by Bill Luebkert other posts by this author
Apr 28 2008 1:59AM messages near this date
view in the new Beta List Site
Process information | 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@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Darin Cruickshanks
Bill Luebkert
Darin Cruickshanks

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved