Dim procID As Integer
Dim newProc As Diagnostics.Process
newProc = Diagnostics.Process.Start("D:\Data Mining\ETL\SPSS\SPSS_SCORING.bat")
procID = newProc.Id
newProc.WaitForExit()
Dim procEC As Integer = -1
If newProc.HasExited Then
procEC = newProc.ExitCode
End If
MsgBox("Process with ID " & CStr(procID) & _
" terminated with exit code " & CStr(procEC))This script can be used for Purposefully delaying the execution of a task.