stop loop execution for given period

karunam

Member
Joined
Aug 1, 2005
Messages
11
Programming Experience
Beginner
hi,


In my do while loop for ex: i have 10 records.for few records wavfilepath exist and for few its null.i need to stop execution of loop till wav file is played and read the next record if the filepath exist say for length of file 1.42 minutes .How can i go about this.now presently i am able to play file but immediatly the loop continues
please help me out



thanks in advance
karuna
 
how are you "playing" the wav files? are you simply opening them in the default player?

if you are using the System.Diagnostics.Process to play the wav files simply do something like this (inside the Do loop):
VB.NET:
Dim prc As System.Diagnostics.Process = System.Diagnostics.Process.Start(PathHere)
prc.WaitForExit
 
Back
Top