vb Code:
Private Function regimprt_b(regfilename As String) As Boolean
If objFSO.FileExists("C:\Maintainer\Video Stream\Reg\" & regfilename) Then
wShell.Exec "regedit /s ""C:\Maintainer\Video Stream\Reg\" & regfilename
regimprt_b = True
Else
regimprt_b = False
End If
End Function
Private Sub cmdVideoStream_Click()
If regimprt_b("Auto Accept Calls Disabled.reg") = False Then GoTo msgError
If regimprt_b("Auto Mix.reg") = False Then GoTo msgError
If regimprt_b("Calibrated Volume.reg") = False Then GoTo msgError
MsgBox "passed", vbInformation + vbOKOnly, Me.Caption
Exit Sub
msgError:
MsgBox "File(s) missing within C:\Maintainer\Video Stream\Reg\", vbCritical + vbOKOnly, Me.Caption
Exit Sub
End Sub