中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-09 12:11
47,811 topics / 349,895 posts / today 0 new / 48,254 members
DOS批处理 & 脚本技术(批处理室) » Auto-detect IP and generate an IP webpage
Printable Version  704 / 0
Floor1 leoxzl Posted 2008-08-11 11:08
新手上路 Posts 1 Credits 4
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!
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023