i need to get information about the processes running on a windows pc
(98, 2k, xp)
i can get the pid's using, win32process.En umProcesses().. .and I can get
a handle on a process using an id..such as
handle = win32api.OpenPr ocess(win32con. PROCESS_QUERY_I NFORMATION, 0,
pids[0])
...but how can i get the name of the process, path to process, etc. I
have the win32 extensions (pywin32) on python 2.4.
thanks. 1 3570
I started down the win32process path trying to solve the same problem. That
only ended in misery for me.
Try this recipie instead: http://aspn.activestate.com/ASPN/Coo.../Recipe/442477
-Chris
On Fri, Oct 21, 2005 at 07:12:34AM -0700, Java and Swing wrote: i need to get information about the processes running on a windows pc (98, 2k, xp)
i can get the pid's using, win32process.En umProcesses().. .and I can get a handle on a process using an id..such as
handle = win32api.OpenPr ocess(win32con. PROCESS_QUERY_I NFORMATION, 0, pids[0])
..but how can i get the name of the process, path to process, etc. I have the win32 extensions (pywin32) on python 2.4.
thanks.
-- http://mail.python.org/mailman/listinfo/python-list This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Scaramouche |
last post by:
is there an equivalent to unixs' ps command in perl?
i was writing some win32 scripts and i needed a listing of specific
processes. i could perhaps grep through a list of running processes but how
can i attain that through perl?
thanks
|
by: RL |
last post by:
Hi all,
I am new and am lost with Win32::Process stuff.
I want on perl script to start a process, then another perl script to
terminate the same process.
I can start a process using...
-------------------------------------------------------
use Win32::Process;
|
by: RL |
last post by:
Hello Perl gurus,
1. I have a web page where I can push a button (dospawn.html).
2. This button calls a CGI script (spawnboss.cgi)
3. spawnboss.cgi calls a forking perl script (forkme.pl)
4. forkme.pl calls the process creation script (createme.pl)
5. createme.pl creates my notepad.exe process, but no window shows up on my
PC.
The result on my web browser is:
|
by: Francois De Serres |
last post by:
Hiho,
could somebody please enlighten me about the mechanics of C callbacks to
Python? My domain is more specifically callbacks from the win32 API, but
I'm not sure that's where the problem lies. Here's a description...
I want a callback-based MIDI input/processing, so PortMidi was not an
alternative. I have written a C extension module that links to the mmsys
MIDI API. I separated the win32-dependant code from the Python extension...
|
by: Gil |
last post by:
I need to create a web page in which its content should be controlled by
some win32 application. this application may add or remove some gif images
from the page and it should be smooth as possible as can.
Can someone here direct me how to start that.
Thanks in advance
Gil
| |
by: jbenezech |
last post by:
Hi All,
I have a perl script which starts a java process using Win32::Process. Here is the code to start the java proces:
Win32::Process::Create($ProcessObj,
shift(@args),
join(" ", @args),
0,
Win32::Process::NORMAL_PRIORITY_CLASS|Win32::Process::CREATE_NO_WINDOW|Win32::Process::DETACHED_PROCESS,
$installPath) or $retCode = 99;
|
by: vijayasb |
last post by:
Hi,
I have 2 solutions to get CPU usage of a Process. In one i am using Performance Counters and in the second i am using Win32 API GetProcessTimes(). When i execute the my application using Performance counter, my application itself takes 70 - 80 % CPU and some memory but when i execute my application using Win32 API GetProcessTimes() , my application takes zero% CPU usage and no memory , but the result i get it late i.e. the CPU usage of...
|
by: somuchh8 |
last post by:
Hi, I'm having a lot of trouble with the Win32::Spawn module in perl. Here is my situation, I have a Win32::Spawn call which looks like this:
my $success = undef;
my $cmdline = EBDTools::os_path("${nh_home}/web/aview/modules/svcrsp-ng/saSync.pl");
$success = Win32::Spawn($^X, "${^X} $cmdline ${optfile}", $pid);
if (! $success) {
my $lasterr = Win32::GetLastError();
return_configerror("Failed to create commit / sync process...
|
by: pythonewbie |
last post by:
Hi all,
I am newbie in Python, my wish would be to create python applications
for both Linux/Win32.
I am stucked on creating a function to get the Python install
directory (and site-packages directory) with a 100% reliable method...
My goal is to verify if an/several extension(s) are installed and to
automatically install the missing ones on Linux or Win32.
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| | |