I'm trying to call a batch on a local machine from another batch. Then I'm trying to start services on a remote computer. Here is my code:
call C:\Oracle\Middleware\user_projects\epm_system\bin\start.bat > SS.log
sc \\OtherMachine start "Service1" >> SS.log
sc \\OtherMachine start "Service2" >> SS.log
I've already confirmed that I can start the services without starting start.bat
beforehand. However, when I try to call start.bat
using the first line of code, it just closes once that completes without running the last two lines.