China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-09 11:12
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » Auto-detect IP and generate an IP webpage View 703 Replies 0
Original Poster Posted 2008-08-11 11:08 ·  中国 香港 城市电讯有限公司
新手上路
Credits 4
Posts 1
Joined 2007-06-18 13:12
19-year member
UID 91696
Gender Male
Status Offline
The company has two servers, A and B. Both have the ERP system installed. Now I want the client side to have the following function:
By default, every client has a webpage file (it directly uses the IP to point to a server and run the ERP system program). To prevent the case where Server A hangs, there is also a data-synchronized Server B. What I want this BAT FILE to do is: when the client starts, it automatically checks whether Server A's IP is reachable (192.168.0.251). If it is reachable, it automatically opens the webpage (URL: http://192.168.0.251/erp.jlnp). If Server A's IP is not reachable, it automatically opens Server B (IP: 192.168.0.252), URL: http://192.168.0.252/erp.jlnp. Please help me, Urgent, many thanks!
Forum Jump: