我想重新启动门户网站Server.suppose,如果我们这样做,则意味着第一次执行stopServer.bat WebSphere_Portal -user ** -password **,第二次执行startServer.bat WebSphere_Portal
是的,它将启动服务器。否则我们也可以这样做。
stopServer.bat WebSphere_Portal-用户**-密码** && startServer.bat WebSphere_Portal
我的问题是如何创建另一个批处理文件,在该批处理文件中,它将使用这两个批处理文件重新启动服务器。如何传递该参数表示用户名,密码和WebSphere_Portal?
编写用于重新启动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
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句