How to know about a process on Windows 2000

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Johnson Bruno

    How to know about a process on Windows 2000

    Hi,
    I need to know whether a process is running or not on Windows 2000
    from a java program.Please guide me.

    Thanks and regards
    Bruno
  • Herman Timmermans

    #2
    Re: How to know about a process on Windows 2000

    Johnson Bruno wrote:
    [color=blue]
    > Hi,
    > I need to know whether a process is running or not on Windows 2000
    > from a java program.Please guide me.
    >
    > Thanks and regards
    > Bruno[/color]
    *************** *************** *************** *************** ***********
    java.lang.Syste m class is your friend.
    using getProperties() returns you the entire properties list.
    You want to look for os.name, os.arch and os.version properties to identify
    whether you are running on Windows 2000.
    Brgds,
    Herman
    --
    Suse Linux Professional 8.1 on Athlon 1.1 Ghz 512 Mb
    Anti Spam = remove the "dot" and the "at"
    Registered Linux User #264690

    Comment

    • Herman Timmermans

      #3
      Re: How to know about a process on Windows 2000

      Herman Timmermans wrote:

      Sorry, after re-reading your question, I think I got it wrong. Sorry,
      English is not my first language.
      I think you want to know whether a process is running or not?
      You are not interested in identifying the OS are you?
      Sorry -
      brgds,
      Herman
      *************** *************** ***************[color=blue]
      > Johnson Bruno wrote:
      >[color=green]
      >> Hi,
      >> I need to know whether a process is running or not on Windows 2000
      >> from a java program.Please guide me.
      >>
      >> Thanks and regards
      >> Bruno[/color]
      > *************** *************** *************** *************** ***********
      > java.lang.Syste m class is your friend.
      > using getProperties() returns you the entire properties list.
      > You want to look for os.name, os.arch and os.version properties to
      > identify whether you are running on Windows 2000.
      > Brgds,
      > Herman[/color]

      --
      Suse Linux Professional 8.1 on Athlon 1.1 Ghz 512 Mb
      Anti Spam = remove the "dot" and the "at"
      Registered Linux User #264690

      Comment

      • Neomorph

        #4
        Re: How to know about a process on Windows 2000

        On 25 Aug 2003 00:23:53 -0700, johnson.bruno@t fn.com (Johnson Bruno)
        two-finger typed:
        [color=blue]
        >Hi,
        > I need to know whether a process is running or not on Windows 2000
        >from a java program.Please guide me.
        >
        >Thanks and regards
        >Bruno[/color]

        You will have to go native (JNI) or find some library with JNI that gives
        you that functionality - it could even be crossplatform (support for 32-bit
        Windows, Linux, Solaris, whatever) with all the neccessary native
        libraries.

        JNIWrapper may help in accessing OS specific functions in Win32.

        Cheers.

        Comment

        • Johnson Bruno

          #5
          Re: How to know about a process on Windows 2000

          Hi Herman,
          Thanks a lot. What I want is this . Say I want to know
          wheather NOTEPAD is running are not. Similarly I will have processes
          like Notepad.

          Thanks and Regards,
          Bruno

          Comment

          Working...