I'm trying to run a set of testing/diagnostic programs in series, and no matter what I do, the all run concurrently. I'm assuming this is due to the code moving on as soon as the programs open, and then immediately do the next task in the sub. To give a little background, I had wrote a simple testing script in basic a while back, and now need to bring it current with a GUI. The batch file would open programs one after the other, because it would wait until an application would close before moving to the next line (unless using the start command).
Here is what I'm using in vb:
Private Sub btnRunselect_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnRunselect.Click
If cbDevmgr.Checked = True Then
MessageBox.Show("DEVMGR!")
End If
If cbCamera.Checked = True Then
MessageBox.Show("Camera!")
End If
If cbKeyboard.Checked = True Then
MessageBox.Show("Keyboard!")
End If
If cbMic.Checked = True Then
MessageBox.Show("Mic!")
End If
If cbBit.Checked = True Then
MessageBox.Show("Bit!")
End If
End Sub
That is with messagebox instead of the programs starting.
Now, the batch code is like this.
:run1
echo .
echo .
echo ----------------------------------
echo . Final Test
echo ----------------------------------
echo .
echo .
SET %S="Final Test"
\utils\nircmdc\nircmdc mutesysvolume 0
\utils\nircmdc\nircmdc setsysvolume 65535
set s=%s: =,%
\utils\nircmdc\nircmdc speak text %S%
:: figure out where the batch drive is
for %%a in (c,d,e,f,g,h,i,j) do if exist %%a:\BurnInTest\bit.exe set drv=%%a
%drv%:
echo .
echo .
echo ----------------------------------
echo. Device Manager
echo ----------------------------------
echo .
echo .
cd C:\Windows\System32\
devmgmt.msc
cd \
%drv%:
echo .
echo .
echo ----------------------------------
echo. Camera Test
echo ----------------------------------
echo .
echo .
\passmark\BurnInTest\AMCap\amcap.exe
echo .
echo .
echo ----------------------------------
echo. Keyboard Test
echo ----------------------------------
echo .
echo .
\passmark\BurnInTest\KeyboardTest\KeyboardTest.EXE -r
echo .
echo .
echo ----------------------------------
echo. Mic Test
echo ----------------------------------
echo .
echo .
\passmark\BurnInTest\SoundCheck\SoundCheck.EXE -R
GOTO run6
Run6
Any help would be GREATLY appreciated! Thanks in advance.