wkwan
11-03-2009, 07:26 AM
I have two run program step calling a batch file on the remote computer, wait for completion is uncheck on both. I'm using 6.7a.
.
i.e. %DOSCMD% call c:\mybatch1.bat and %DOSCMD% call c:\mybatch2.bat
Run program 1
Run program 2
Wait <- hangs even if mybatch1.bat and mybatch2.bat window had closed on the remote machine.
This is what I use to get the process ID on both run program step.
Run program 1
------------------
Sub vbld_StepDone()
' store this step's process ID in temporary macro
vbld_TempMacros.Add "RUNPRG1_PROCESSID", vbld_TempMacro("RUNPROGRAM_PROCESSID").Value
End Sub
Run program 2
-------------------
Sub vbld_StepDone()
' store this step's process ID in temporary macro
vbld_TempMacros.Add "RUNPRG2_PROCESSID", vbld_TempMacro("RUNPROGRAM_PROCESSID").Value
End Sub
Wait
------
%RUNPRG1_PROCESSID%
%RUNPRG2_PROCESSID%
.
i.e. %DOSCMD% call c:\mybatch1.bat and %DOSCMD% call c:\mybatch2.bat
Run program 1
Run program 2
Wait <- hangs even if mybatch1.bat and mybatch2.bat window had closed on the remote machine.
This is what I use to get the process ID on both run program step.
Run program 1
------------------
Sub vbld_StepDone()
' store this step's process ID in temporary macro
vbld_TempMacros.Add "RUNPRG1_PROCESSID", vbld_TempMacro("RUNPROGRAM_PROCESSID").Value
End Sub
Run program 2
-------------------
Sub vbld_StepDone()
' store this step's process ID in temporary macro
vbld_TempMacros.Add "RUNPRG2_PROCESSID", vbld_TempMacro("RUNPROGRAM_PROCESSID").Value
End Sub
Wait
------
%RUNPRG1_PROCESSID%
%RUNPRG2_PROCESSID%