Good day all
I am trying to check if a file exists for a path, but how can i put a timer on this so that if it is not working then it will time out instead of taking a long long time to send the error message?
Cheers
Code:Sub GetInfo() If System.IO.File.Exists(DataSourcePath) = True Then 'Do something Else Msgbox "Error: file cannot be fould" frm.Label1.text = "ERROR" End if End Sub





Reply With Quote