我想重新启动门户Server.suppose,如果我们这样做意味着第一次执行stopServer.bat WebSphere_Portal -user ** -password **和第二次执行startServer.bat WebSphere_Portal
是的,它将启动Server.otherwisewe也可以这样做..
stopServer.bat WebSphere_Portal -user ** -password *& startServer.bat WebSphere_Portal
我的问题是如何创建另一个批处理文件,在该批文件中,它将重新启动服务器,通过使用该2批File.and,如何传递该参数意味着用户名和密码以及WebSphere_Portal?
发布于 2014-05-29 16:18:06
编写批处理脚本以重新启动Portal与编写调用任何其他批处理脚本的批处理脚本没有区别:
@echo off
setlocal
set USER=%1
set PASSWORD=%2
call stopServer.bat WebSphere_Portal -user %USER% -password %PASSWORD%
call startServer.bat WebSphere_Portal这个称呼是:
restartPortal.bat MyUser MyPassword发布于 2014-05-29 12:27:30
您可以将Portal添加为windows服务,然后可以使用Windows启动、停止和重新启动。
https://stackoverflow.com/questions/23910219
复制相似问题