VB Script for Introducing Delay in SSIS

  1. Dim procID As Integer  
  2. Dim newProc As Diagnostics.Process  
  3. newProc = Diagnostics.Process.Start("D:\Data Mining\ETL\SPSS\SPSS_SCORING.bat")  
  4. procID = newProc.Id  
  5. newProc.WaitForExit()  
  6. Dim procEC As Integer = -1  
  7. If newProc.HasExited Then  
  8. procEC = newProc.ExitCode  
  9. End If  
  10. MsgBox("Process with ID " & CStr(procID) & _  
  11. " terminated with exit code " & CStr(procEC))