I'm looking for something real basic that will allow me to execute a windows command inside my VB program and wait for it to return. I'm currently using something like:
cmdStr = "dir /s /b>files.txt"
My problem is that when I try to open the files.txt file for reading, the actual dir command hasn't finished. Is there a way to get Shell to block until the command running is completed? Thanks very much for any help!