Here's the translation:
The situation is like this:
I and my colleagues have three computers, connected through a HUB, sharing a broadband account to access the internet through a proxy software. All three computers are on XP operating system, and both the server and client of the proxy software are installed. Whoever boots up first uses the account to log in. Others need to start the client to connect to the computer that has the server started. It's often one computer after another to try, to see who has started the server. If none have started, then one has to log in with the account oneself, which is very tedious.
Now I want to use a batch program, without third-party software, to automatically judge the running situation of the server. The key step is to query whether a certain program (such as server.exe) is running on a certain computer, or whether a certain port (such as 123) is open. How to program this?
The situation is like this:
I and my colleagues have three computers, connected through a HUB, sharing a broadband account to access the internet through a proxy software. All three computers are on XP operating system, and both the server and client of the proxy software are installed. Whoever boots up first uses the account to log in. Others need to start the client to connect to the computer that has the server started. It's often one computer after another to try, to see who has started the server. If none have started, then one has to log in with the account oneself, which is very tedious.
Now I want to use a batch program, without third-party software, to automatically judge the running situation of the server. The key step is to query whether a certain program (such as server.exe) is running on a certain computer, or whether a certain port (such as 123) is open. How to program this?
