I have this piece of code.

ShellExecute Me.hwnd, vbNullString, "c:\mybat.bat", _
vbNullString, "C:\", SW_SHOWNORMAL

I want this to loop until it has ended.

Any ideas ?