473,408 Members | 2,025 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

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
Jul 17 '05 #1
4 2895
Johnson Bruno wrote:
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

************************************************** *********************
java.lang.System 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
Jul 17 '05 #2
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
*********************************************
Johnson Bruno wrote:
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

************************************************** *********************
java.lang.System 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
Jul 17 '05 #3
On 25 Aug 2003 00:23:53 -0700, jo***********@tfn.com (Johnson Bruno)
two-finger typed:
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


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.
Jul 17 '05 #4
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
Jul 17 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Ken Varn | last post by:
Everytime I call Process.GetCurrentProcess() the system goes out to the floppy drive. Why does this happen. I decided to use FileMon to get a log of what is happening when this occurs. Here is...
0
by: ksams | last post by:
Hi Hope this mail finds you in the best of health and in good sprit. I have a problem with Web Service in a Windows 2000 Advanced Serve Machine. I have a WebService calling a Method in a...
2
by: chris.higginson | last post by:
Hi, I'm running SQL Server Version 8.00.194 on Windows 2000. I am am running this query: select TOP 2000 TheoVolImplied from OptionTrades where ReutersSymbol = 'IBM.N' and TheoVolImplied...
7
by: Samantha | last post by:
Hello , I am developping a program for Win98 plateform, and I am stucking with a problem, hope you can help me. I have a program running 2 process : - One process running the Xcopy.exe -...
7
by: Dave Mehrtens | last post by:
I am trying to configure my ASP.NET application and have come across something unexpected. First, I understand that all ASP.NET applications running on a single server will utilize a single...
2
by: Michael Johnson Sr. | last post by:
I am trying to view a list of running processes using ASP.NET with C#, I found System.Diagnostics.Process which seems to work good with IIS 5 and XP, when I move the application to Windows 2000...
4
by: Eidolon | last post by:
We have a Win2K3 Web Edition server. I have the remote components installed and am trying to attach to debug, but i cant find what process to attach to. On Win2K its aspnet_wp.exe. That process...
1
by: Ajay Choudhary | last post by:
Hi, I am trying to figure out the default Worker Process Account for ASP.NET Worker Process. Following is my list - IIS 5.0 on Windows 2000 - ASPNET IIS...
1
by: John Crouse | last post by:
I am using the following code sucessfully on Windows 2000 and Windows XP. However, in WIndows 98 it seems to hang on the WaitForExit. What are my options here? MsgBox("Please be patient. This...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...
0
tracyyun
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...
0
agi2029
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,...
0
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.