My own batch script is Myscript.bat
which is in folder D:\
. There is a batch file named server.bat
which is located at D:\wlp\bin
for starting (IBM liberty web) server. And I use the command D:\wlp\bin>server start defaultServer
. I want to start the server by clicking Myscript.bat and then want to display a message "Loading Completed" and the automatically a default browser with URL http://localhost:8080/Demo
. But after starting the server I am not able to display message or launching browser. Please suggest what needs to change in my code.(I am not allowed to look into code of server.bat, so it should not be touched)
@echo Starting script
@echo Loading Liberty Profile. This may take some time ...
@cmd /k "%~dp0\wlp\bin\server.bat"
echo Loading completed
Command Prompt Screenshot:
D:\wlp\bin>server start defaultServer
Starting server defaultServer.
Server defaultServer started.