Results 1 to 3 of 3
  1. #1
    RaviYadav is offline Member
    Join Date
    Feb 2009
    Posts
    2
    Rep Power
    0

    Default StartingAndKillingProcessesInXP

    I want to make a program through which i can manages Windows XP process like:
    1: create any process
    2: kill any process
    3: to know how many process are running, with these names

    Plzzzz Anyone reply

  2. #2
    dlorde is offline Senior Member
    Join Date
    Jun 2008
    Posts
    339
    Rep Power
    7

    Default

    You can't do this directly from Java. You could perhaps run an external program from Java and examine its output, using Runtime.exec(..), or you could use the JNI (Java Native Interface) to create a DLL to hook you up to the Windows OS process APIs, but it's a lot of work.

    For this kind of task, you're better finding an appropriate tool for the job, i.e. a native language such as C/C++ or C#.

  3. #3
    toadaly is offline Senior Member
    Join Date
    Jan 2009
    Posts
    671
    Rep Power
    6

    Default

    To write a java program that allows you to launch processes, kill processes it launched, and view processes it launched is straightforward using Runtime.exec, but it would not be a general process manager that could kill/view arbitrary processes. As dlorde suggested, a native language that hooks directly into the windows API is needed for general process management.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •