Hi,
I have this code for checking if 1 file exists (binPath is already declared):
However, I need to check if another five files exist too. Should I just copy the above code another 5 times, or is there a more efficient way of doing it?
TIA
Wibs
I have this code for checking if 1 file exists (binPath is already declared):
VB.NET:
Dim filename1 As String = "\OpenSim.Grid.UserServer.exe"
Dim U As Boolean = System.IO.File.Exists(binPath + filename1)
If U = False Then
MessageBox.Show("OpenSim.Grid.UserServer.exe cannot be found in this folder. Please check that this is the correct bin folder, and that the file has not be renamed.", "File not Found", MessageBoxButtons.OK, MessageBoxIcon.Error)
End If
However, I need to check if another five files exist too. Should I just copy the above code another 5 times, or is there a more efficient way of doing it?
TIA
Wibs