With a lot of help from this and other VB support areas, I use this function to execute DOS commands, and wait until they are done:
Public Function RunDos(ByVal strWorkingDir As String, ByVal strCommand As String, ByVal strArgs As String) As String...