DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: QUERY: How to control external exe & read it's process details

  1. #1
    Join Date
    Jun 2009
    Posts
    6

    QUERY: How to control external exe & read it's process details

    I would like to create a service or background running program (something that minimizes to system tray).

    It would have a path list of external applications, eg.

    - C:\App1\Task1.exe
    - C:\App2\Task2.exe
    - C:\App3\Task3.exe

    It would start the first one and monitor the process details (CPU Usage, Mem Usage, and maybe I/O Writes). Each application will do their jobs for a couple of minutes then go idle - hence completed the task. At this point the CPU Usage = 0, Mem Usage, etc. will be idle.

    Then I need to close/kill that process and start the next application in the list. And this repeats as above and so on.

    Does anyone know how to execute an external program, monitor the process details, then kill it?

  2. #2
    Join Date
    Dec 2003
    Posts
    3,366
    execute and kill are easy, esp if they communicate to each other. The process details I am unsure of.

    "system" is a basic way to launch a process (system("c:\t.exe")) or Shellexecute*.* faimily in windows is a complicated and rich way to do it with all sorts of options.

Similar Threads

  1. Replies: 10
    Last Post: 03-29-2001, 01:02 PM
  2. Replies: 0
    Last Post: 03-23-2001, 09:32 AM
  3. ActiveX Control and Standard EXE
    By sus in forum VB Classic
    Replies: 0
    Last Post: 02-02-2001, 07:57 PM
  4. ActiveX Control for query fields?
    By Alan Speckman in forum VB Classic
    Replies: 0
    Last Post: 03-24-2000, 02:14 PM
  5. Re: Abnormal termination after compilation of exe with user control
    By Mark Alexander Bertenshaw in forum VB Classic
    Replies: 3
    Last Post: 03-16-2000, 07:17 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center